made luash print the motd
This commit is contained in:
parent
7dee940cf2
commit
98e9b95f54
@ -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), {}
|
||||
|
Loading…
Reference in New Issue
Block a user