mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-25 12:42:10 -05:00
modify the two services people actually use to work with the new service semantics
This commit is contained in:
parent
216e0a15c6
commit
417856ebd6
@ -37,7 +37,7 @@ local function spawnShell(fin,fout)
|
|||||||
io.input(fin)
|
io.input(fin)
|
||||||
io.output(fout):setvbuf("no")
|
io.output(fout):setvbuf("no")
|
||||||
print(_OSVERSION.." - "..tostring(math.floor(computer.totalMemory()/1024)).."K RAM")
|
print(_OSVERSION.." - "..tostring(math.floor(computer.totalMemory()/1024)).."K RAM")
|
||||||
return os.spawn(shell.interactive, "shell: "..tostring(fin))
|
return os.spawn(function() local w,r = pcall(shell.interactive) if not w then syslog(r) end end, "shell: "..tostring(fin))
|
||||||
end
|
end
|
||||||
|
|
||||||
local function allocate()
|
local function allocate()
|
||||||
@ -77,3 +77,4 @@ function stop()
|
|||||||
os.kill(basepid)
|
os.kill(basepid)
|
||||||
basepid = nil
|
basepid = nil
|
||||||
end
|
end
|
||||||
|
return {start=start,stop=stop}
|
||||||
|
@ -271,3 +271,4 @@ function del_route(to)
|
|||||||
cfg.sroutes[to] = nil
|
cfg.sroutes[to] = nil
|
||||||
saveconfig()
|
saveconfig()
|
||||||
end
|
end
|
||||||
|
return {start=start,stop=stop,set=set,set_route=set_route,del_route=del_route}
|
||||||
|
Loading…
Reference in New Issue
Block a user