made luash print the motd

This commit is contained in:
Izaya 2017-09-05 19:08:24 +10:00
parent 7dee940cf2
commit 98e9b95f54
1 changed files with 2 additions and 1 deletions

View File

@ -1,10 +1,11 @@
function luash(si)
spawn("lua shell",function()
print(_OSVERSION..", "..string.format("%4d",computer.totalMemory()/1024).."K memory")
print(_VERSION)
print(MOTD,net.id,_VERSION)
while true do
write((os.getenv("PWD") or "").."> ")
local inp=readln()
if not inp then break end
if inp:sub(1,1) == "!" then
local pth = os.getenv("PATH") or "."
local s,ptt = inp:sub(2), {}