From bfd5ea7cb4aeaad641813b6c83cb9c6e0db4a7d9 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Tue, 5 Sep 2017 19:42:56 +1000 Subject: [PATCH] improved motd stuff --- modules/applications/luash.lua | 4 ++-- modules/util/motd.lua | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 modules/util/motd.lua 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")