improved motd stuff

This commit is contained in:
Izaya 2017-09-05 19:42:56 +10:00
parent 3ded060771
commit bfd5ea7cb4
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
function luash(si)
spawn("lua shell",function()
print(_OSVERSION..", "..string.format("%4d",computer.totalMemory()/1024).."K memory")
print(MOTD,net.id,_VERSION)
print(MOTD)
print(_VERSION)
while true do
write((os.getenv("PWD") or "").."> ")
local inp=readln()

1
modules/util/motd.lua Normal file
View File

@ -0,0 +1 @@
_G.MOTD = (_OSVERSION.." on "..net.id..", "..string.format("%4d",computer.totalMemory()/1024).."K memory")