1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-22 03:54:20 -05:00

updated some executables to actually work with the kernel changes

This commit is contained in:
XeonSquared 2019-11-04 08:55:39 +11:00
parent 346c6bcf29
commit 0ced41b897
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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)