diff --git a/modules/applications/luash.lua b/modules/applications/luash.lua index cbcbd6a..2a21713 100644 --- a/modules/applications/luash.lua +++ b/modules/applications/luash.lua @@ -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() diff --git a/modules/util/motd.lua b/modules/util/motd.lua new file mode 100644 index 0000000..6f9e98c --- /dev/null +++ b/modules/util/motd.lua @@ -0,0 +1 @@ +_G.MOTD = (_OSVERSION.." on "..net.id..", "..string.format("%4d",computer.totalMemory()/1024).."K memory")