diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-03-05 20:52:52 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-03-05 20:52:52 -0500 |
| commit | 02217467562da991c5f3335d4847510ac312c981 (patch) | |
| tree | ddfff454413c250ca527fdcd1b9b718414bd790f /startup.lua | |
| parent | d8d7f67e60a6b68df2fdd89b9f74f638620e9e57 (diff) | |
| download | bits-UI-02217467562da991c5f3335d4847510ac312c981.tar.gz bits-UI-02217467562da991c5f3335d4847510ac312c981.tar.bz2 bits-UI-02217467562da991c5f3335d4847510ac312c981.zip | |
Added a new API and made changes on the post setup
Diffstat (limited to 'startup.lua')
| -rw-r--r-- | startup.lua | 5 |
1 files changed, 3 insertions, 2 deletions
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() |
