From 02217467562da991c5f3335d4847510ac312c981 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 5 Mar 2019 20:52:52 -0500 Subject: Added a new API and made changes on the post setup --- startup.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'startup.lua') diff --git a/startup.lua b/startup.lua index 82c5a06..e3533d4 100644 --- a/startup.lua +++ b/startup.lua @@ -14,6 +14,7 @@ ]]-- local boot = "/system/boot.lua" +local allowUpdate = true function bootloader() term.setCursorPos(1,1) @@ -42,8 +43,8 @@ function bootloaderInput() shell.run("/system/boot.lua") elseif input == "2" then clear() - if fs.exists("dev_mode") then - print("You are running developer mode! You cannot update bit-UI.") + if allowUpdate == false then + print("You have set updating to false!\n Please set updating to true if you want to update...") sleep(3) clear() bootloader() -- cgit v1.2.3