aboutsummaryrefslogtreecommitdiff
path: root/startup
diff options
context:
space:
mode:
authorAlee <Alee14498@gmail.com>2019-03-05 10:07:23 -0500
committerAlee <Alee14498@gmail.com>2019-03-05 10:07:23 -0500
commita0b298a29fe83ab93dfb9bb4dab3bbd1c574d932 (patch)
treee87defbfd32e705d79e770dbd54f44d78bd5a455 /startup
parent76182cd576ededfc364b16d6b5b57f791a122bb7 (diff)
downloadbits-UI-a0b298a29fe83ab93dfb9bb4dab3bbd1c574d932.tar.gz
bits-UI-a0b298a29fe83ab93dfb9bb4dab3bbd1c574d932.tar.bz2
bits-UI-a0b298a29fe83ab93dfb9bb4dab3bbd1c574d932.zip
Added the desktop and move the boot up sequence to it's own file
Diffstat (limited to 'startup')
-rw-r--r--startup55
1 files changed, 1 insertions, 54 deletions
diff --git a/startup b/startup
index ebe6e32..2e9e5ca 100644
--- a/startup
+++ b/startup
@@ -1,55 +1,2 @@
-- bits-UI: An operating system for ComputerCraft. Licensed with GPL-3.0.
-
-local version = "1.0 Alpha 1"
-local desktop = "/system/desktop.lua"
-
-term.clear()
-term.setCursorPos(1,1)
-print("Starting up bits-UI ".. version .."...")
-sleep(3)
-
-if term.isColor() then
- print("[OK] Advanced Computer is detected...")
-else
- print("[ERROR] You need a advanced computer in order to make the UI functional...")
- sleep(3)
- os.shutdown()
-end
-
-sleep(3)
-
-if fs.exists(desktop) then
- print("[OK] Desktop has been found...")
-else
- print("[ERROR] Desktop cannot be found...")
- sleep(3)
- os.shutdown()
-end
-
-sleep(3)
-
-if fs.exists("/home") then
- print("[OK] Home has been found...")
-else
- fs.makeDir("/home")
- print("[OK] Home directory has been created...")
-end
-
-sleep(3)
-
-if fs.exists("/system/bitUI.config") then
- print("[OK] Config has been found...")
-else
- config = io.open("/system/bitUI.config", "w")
- config:close()
-
- print("[INFO] Config has not been found!")
- print("[INFO] You will be sent to the OOBE setup...")
-end
-
-sleep(3)
-
-print("[DONE] Boot sequence is completed...")
-
-sleep(3)
-shell.run(desktop) \ No newline at end of file
+shell.run("/system/boot.lua") \ No newline at end of file