From bc294508b9d6566add6605bb7da09d3f6b74f9bb Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 15 Jul 2019 13:12:04 -0400 Subject: Corrections and new API! --- startup.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'startup.lua') diff --git a/startup.lua b/startup.lua index 853bac9..eccb3b6 100644 --- a/startup.lua +++ b/startup.lua @@ -32,8 +32,10 @@ function bootloader() term.setCursorPos(1,5) print("2. Update bits-UI\n") term.setCursorPos(1,6) - print("3. Boot CraftOS\n") - term.setCursorPos(1,8) + print("3. Recovery Mode\n") + term.setCursorPos(1,7) + print("4. Boot CraftOS\n") + term.setCursorPos(1,9) term.write("> ") end @@ -76,6 +78,11 @@ function bootloaderInput() shell.run("pastebin", "run", "7XY80hfG") end elseif input == "3" then + clear() + print("Running Recovery Mode...") + sleep(2) + shell.run("/system/recovery/main.lua") + elseif input == "4" then clear() term.setTextColor(16) print(os.version()) -- cgit v1.2.3