From 0ced41b897d97d131695d362b85c24a0d6f29820 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 4 Nov 2019 08:55:39 +1100 Subject: [PATCH] updated some executables to actually work with the kernel changes --- exec/ps.lua | 4 ++-- exec/shell.lua | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/exec/ps.lua b/exec/ps.lua index c2bdb29..f103a5d 100644 --- a/exec/ps.lua +++ b/exec/ps.lua @@ -1,5 +1,5 @@ -print("PID# Parent Name") +print("PID# Parent | Name") for k,v in pairs(os.tasks()) do local t = os.taskInfo(v) - print(string.format("%4d %4d %s",k,v.parent,v.name)) + print(string.format("%4d %4d | %s",k,t.parent,t.name)) end diff --git a/exec/shell.lua b/exec/shell.lua index a605189..a2c827c 100644 --- a/exec/shell.lua +++ b/exec/shell.lua @@ -26,6 +26,7 @@ setmetatable(shenv,{__index=function(_,k) if _G[k] then return _G[k] elseif fs.exists("/boot/exec/"..k..".lua") then + --[[ local rqid = string.format("shell-%d",math.random(1,99999)) return function(...) local tA = {...} @@ -42,6 +43,8 @@ setmetatable(shenv,{__index=function(_,k) end until tTasks[pid] == nil end + ]]-- + return loadfile("/boot/exec/"..k..".lua") end end}) print(_VERSION)