From 61bf8545398cb2feed9ae972c98e2c6595cbec17 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 14 Sep 2017 16:21:32 +1000 Subject: [PATCH] made the login setup saner. --- exec/luash.lua | 1 - modules/applications/login.lua | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/luash.lua b/exec/luash.lua index 731a904..dea87da 100644 --- a/exec/luash.lua +++ b/exec/luash.lua @@ -4,7 +4,6 @@ spawn("lua shell",function() _ENV = shutil.genenv() coroutine.yield() log(pcall(login)) - print("\f"..MOTD) print(_VERSION) while true do write((os.getenv("PWD") or "").."> ") diff --git a/modules/applications/login.lua b/modules/applications/login.lua index 49d7580..b3e933b 100644 --- a/modules/applications/login.lua +++ b/modules/applications/login.lua @@ -1,8 +1,9 @@ function login() local un,pw,cc = "","",false + print(MOTD) if #os.users() > 0 then repeat - io.write("\f"..MOTD.."\n"..net.id.." login: ") + io.write(net.id.." login: ") un = io.read() io.write("Password: ") pw = io.read("*")