diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-07-19 14:10:39 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-07-19 14:10:39 -0400 |
| commit | fe08446d84e0aa939780ad013f0545778703da6d (patch) | |
| tree | f45358ae6470dc894c41abcb278c4898c7ef1b18 /startup.lua | |
| parent | 21446806b264d8fd6694b1495f0c51bf24d26b35 (diff) | |
| download | bits-UI-fe08446d84e0aa939780ad013f0545778703da6d.tar.gz bits-UI-fe08446d84e0aa939780ad013f0545778703da6d.tar.bz2 bits-UI-fe08446d84e0aa939780ad013f0545778703da6d.zip | |
MBS as default shell
Diffstat (limited to 'startup.lua')
| -rw-r--r-- | startup.lua | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/startup.lua b/startup.lua index 424850e..8456680 100644 --- a/startup.lua +++ b/startup.lua @@ -34,7 +34,7 @@ function bootloader() term.setCursorPos(1,6) print("3. Recovery Mode\n") term.setCursorPos(1,7) - print("4. Boot CraftOS\n") + print("4. Boot CraftOS with MBS\n") term.setCursorPos(1,9) term.write("> ") end @@ -84,8 +84,10 @@ function bootloaderInput() shell.run("/system/recovery/main.lua") elseif input == "4" then clear() + sleep(1) + assert(loadfile("/.mbs/bin/mbs.lua", _ENV))('startup') term.setTextColor(16) - print(os.version()) + print(os.version() .. " (+MBS)") term.setCursorPos(1,2) term.setTextColor(1) else @@ -99,22 +101,12 @@ function bootloaderInput() end clear() print("Welcome to BUBL!") -if fs.exists(bublcfg) then - sleep(1) - if fs.exists("/.git") then - devMode = true - else - devMode = false - end - clear() - bootloader() - bootloaderInput() +sleep(1) +if fs.exists("/.git") then + devMode = true else - clear() - term.setTextColor(colors.red) - print("[ERROR] System cannot find bubl.cfg...") - term.setCursorPos(1,2) - print("System halted...") - sleep(2) - os.shutdown() + devMode = false end +clear() +bootloader() +bootloaderInput()
\ No newline at end of file |
