Browse Source

modify the two services people actually use to work with the new service semantics

master
XeonSquared 5 months ago
parent
commit
417856ebd6
2 changed files with 3 additions and 1 deletions
  1. +2
    -1
      service/getty.lua
  2. +1
    -0
      service/minitel.lua

+ 2
- 1
service/getty.lua View File

@@ -37,7 +37,7 @@ local function spawnShell(fin,fout)
io.input(fin)
io.output(fout):setvbuf("no")
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

local function allocate()
@@ -77,3 +77,4 @@ function stop()
os.kill(basepid)
basepid = nil
end
return {start=start,stop=stop}

+ 1
- 0
service/minitel.lua View File

@@ -271,3 +271,4 @@ function del_route(to)
cfg.sroutes[to] = nil
saveconfig()
end
return {start=start,stop=stop,set=set,set_route=set_route,del_route=del_route}

Loading…
Cancel
Save