From 98e9b95f5440f59a9b99340ae37b16648840db7e Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Tue, 5 Sep 2017 19:08:24 +1000 Subject: [PATCH] made luash print the motd --- modules/applications/luash.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/applications/luash.lua b/modules/applications/luash.lua index 60dcbd7..cbcbd6a 100644 --- a/modules/applications/luash.lua +++ b/modules/applications/luash.lua @@ -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), {}