aboutsummaryrefslogtreecommitdiff
path: root/startup.lua
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@gmail.com>2019-07-15 13:12:04 -0400
committerAndrew Lee <alee14498@gmail.com>2019-07-15 13:12:04 -0400
commitbc294508b9d6566add6605bb7da09d3f6b74f9bb (patch)
tree2dc2e09e6aa5e3edcc98e1a22217ac61c702c4a6 /startup.lua
parenta3e41759b761898f24b9e8b7c5e0679ca273df07 (diff)
downloadbits-UI-bc294508b9d6566add6605bb7da09d3f6b74f9bb.tar.gz
bits-UI-bc294508b9d6566add6605bb7da09d3f6b74f9bb.tar.bz2
bits-UI-bc294508b9d6566add6605bb7da09d3f6b74f9bb.zip
Corrections and new API!
Diffstat (limited to 'startup.lua')
-rw-r--r--startup.lua11
1 files changed, 9 insertions, 2 deletions
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
@@ -77,6 +79,11 @@ function bootloaderInput()
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())
term.setCursorPos(1,2)