From 2f597d0dc403be6d9bbc4e901fb012d8c772ea1a Mon Sep 17 00:00:00 2001 From: Kan18 <24967425+Kan18@users.noreply.github.com> Date: Tue, 13 Aug 2019 13:14:11 -0400 Subject: [PATCH] support MOTDs (#19) --- sys/apps/shell.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/apps/shell.lua b/sys/apps/shell.lua index c5dbf28..d64f046 100644 --- a/sys/apps/shell.lua +++ b/sys/apps/shell.lua @@ -3,6 +3,7 @@ local parentShell = _ENV.shell _ENV.shell = { } local fs = _G.fs +local settings = _G.settings local shell = _ENV.shell local sandboxEnv = setmetatable({ }, { __index = _G }) @@ -673,6 +674,10 @@ local history = History.load('usr/.shell_history', 25) term.setBackgroundColor(_colors.backgroundColor) term.clear() +if settings.get("motd.enabled") then + shell.run("motd") +end + while not bExit do if config.displayDirectory then term.setTextColour(_colors.directoryTextColor)