From fc49ea175aae2d292fbc87c5b019a1bb28f21c69 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 17 Oct 2019 13:16:15 -0400 Subject: Shutdown option in bootloader --- startup.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'startup.lua') diff --git a/startup.lua b/startup.lua index fc472cc..1d520a4 100644 --- a/startup.lua +++ b/startup.lua @@ -35,7 +35,9 @@ function bootloader() print("3. Recovery Mode\n") term.setCursorPos(1,7) print("4. Boot CraftOS with MBS\n") - term.setCursorPos(1,9) + term.setCursorPos(1,8) + print("5. Shutdown\n") + term.setCursorPos(1,10) term.write("> ") end @@ -90,6 +92,8 @@ function bootloaderInput() print(os.version() .. " (+MBS)") term.setCursorPos(1,2) term.setTextColor(1) + elseif input == "5" then + os.shutdown(); else print("[ERROR] Invalid number.") sleep(1) -- cgit v1.2.3