aboutsummaryrefslogtreecommitdiff
path: root/System
diff options
context:
space:
mode:
Diffstat (limited to 'System')
-rw-r--r--System/desktop.lua2
-rw-r--r--System/post-setup.lua4
-rw-r--r--System/recovery/main.lua5
3 files changed, 6 insertions, 5 deletions
diff --git a/System/desktop.lua b/System/desktop.lua
index 58888ed..786b668 100644
--- a/System/desktop.lua
+++ b/System/desktop.lua
@@ -13,7 +13,7 @@
GNU General Public License for more details.
]]--
-os.require("/System/apis/flib.lua")
+os.loadAPI("/System/apis/flib.lua")
local backgroundColour = 32768
local backgroundImage = "/home/.background"
local panelColour = 8192
diff --git a/System/post-setup.lua b/System/post-setup.lua
index d213650..94c9d65 100644
--- a/System/post-setup.lua
+++ b/System/post-setup.lua
@@ -12,8 +12,8 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
]]--
-os.require("/System/apis/sha256.lua")
-os.require("/System/apis/json.lua")
+os.loadAPI("/System/apis/sha256.lua")
+os.loadAPI("/System/apis/json.lua")
local config = "/Home/.config"
term.clear()
diff --git a/System/recovery/main.lua b/System/recovery/main.lua
index 15c51aa..0adb7cc 100644
--- a/System/recovery/main.lua
+++ b/System/recovery/main.lua
@@ -19,10 +19,11 @@ term.setTextColor(colors.white)
print("Welcome to the bits-UI recovery mode!")
sleep(2)
print("Do you want to either reset or transfer?")
+print("1 or 2")
local input = read();
-if input == "reset" then
+if input == "1" then
shell.run("/System/recovery/reset.lua")
-elseif input == "transfer" then
+elseif input == "2" then
shell.run("/System/recovery/transfer.lua")
else
os.reboot()