diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-10-17 13:16:15 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-10-17 13:16:15 -0400 |
| commit | fc49ea175aae2d292fbc87c5b019a1bb28f21c69 (patch) | |
| tree | b436b38b9e7edba5cdc68ecf365a6b64d22b03a2 | |
| parent | aa4e280b69493b013385fee5c8c45725d0e9366e (diff) | |
| download | bits-UI-fc49ea175aae2d292fbc87c5b019a1bb28f21c69.tar.gz bits-UI-fc49ea175aae2d292fbc87c5b019a1bb28f21c69.tar.bz2 bits-UI-fc49ea175aae2d292fbc87c5b019a1bb28f21c69.zip | |
Shutdown option in bootloader
| -rw-r--r-- | startup.lua | 6 |
1 files changed, 5 insertions, 1 deletions
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) |
