improved motd stuff
This commit is contained in:
parent
3ded060771
commit
bfd5ea7cb4
@ -1,7 +1,7 @@
|
|||||||
function luash(si)
|
function luash(si)
|
||||||
spawn("lua shell",function()
|
spawn("lua shell",function()
|
||||||
print(_OSVERSION..", "..string.format("%4d",computer.totalMemory()/1024).."K memory")
|
print(MOTD)
|
||||||
print(MOTD,net.id,_VERSION)
|
print(_VERSION)
|
||||||
while true do
|
while true do
|
||||||
write((os.getenv("PWD") or "").."> ")
|
write((os.getenv("PWD") or "").."> ")
|
||||||
local inp=readln()
|
local inp=readln()
|
||||||
|
1
modules/util/motd.lua
Normal file
1
modules/util/motd.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
_G.MOTD = (_OSVERSION.." on "..net.id..", "..string.format("%4d",computer.totalMemory()/1024).."K memory")
|
Loading…
Reference in New Issue
Block a user