aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@gmail.com>2019-03-05 12:49:07 -0500
committerAndrew Lee <alee14498@gmail.com>2019-03-05 12:49:07 -0500
commit8e5d5935df078db9f05a9587ad6d61b7f2b82dcf (patch)
tree2c1aad106767f80e881c4078c598f7b87b26930e /system
parentf43a02544db685563bb626e100aa5f201a65e6c3 (diff)
downloadbits-UI-8e5d5935df078db9f05a9587ad6d61b7f2b82dcf.tar.gz
bits-UI-8e5d5935df078db9f05a9587ad6d61b7f2b82dcf.tar.bz2
bits-UI-8e5d5935df078db9f05a9587ad6d61b7f2b82dcf.zip
Boot loader :D (I nearly lost all of my work when I ran the updater...)
Diffstat (limited to 'system')
-rw-r--r--system/boot.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/system/boot.lua b/system/boot.lua
index 1afc489..4554d9e 100644
--- a/system/boot.lua
+++ b/system/boot.lua
@@ -7,14 +7,14 @@ local desktop = "/system/desktop.lua"
term.clear()
term.setCursorPos(1,1)
-print("Starting up bits-UI ".. version .."...")
+term.write("Starting up bits-UI ".. version .."...")
sleep(3)
if term.isColor() then
term.setTextColor(colors.green)
- print("[OK] Advanced Computer is detected...")
+ term.write("[OK] Advanced Computer is detected...")
else
- print("[ERROR] You need a advanced computer in order to make the UI functional...")
+ term.write("[ERROR] You need a advanced computer in order to make the UI functional...")
sleep(3)
os.shutdown()
end
@@ -23,10 +23,10 @@ sleep(3)
if fs.exists(desktop) then
term.setTextColor(colors.green)
- print("[OK] Desktop has been found...")
+ term.write("[OK] Desktop has been found...")
else
term.setTextColor(colors.red)
- print("[ERROR] Desktop cannot be found...")
+ term.write("[ERROR] Desktop cannot be found...")
sleep(3)
os.shutdown()
end
@@ -35,29 +35,29 @@ sleep(3)
if fs.exists("/home") then
term.setTextColor(colors.green)
- print("[OK] Home has been found...")
+ term.write("[OK] Home has been found...")
else
fs.makeDir("/home")
term.setTextColor(colors.green)
- print("[OK] Home directory has been created...")
+ term.write("[OK] Home directory has been created...")
end
sleep(3)
if fs.exists("/system/bitUI.config") then
term.setTextColor(colors.green)
- print("[OK] Config has been found...")
+ term.write("[OK] Config has been found...")
else
config = io.open("/system/bitUI.config", "w")
config:close()
term.setTextColor(colors.blue)
- print("[INFO] Config has not been found!")
- print("[INFO] You will be sent to the OOBE setup...")
+ term.write("[INFO] Config has not been found!")
+ term.write("[INFO] You will be sent to the OOBE setup...")
end
sleep(3)
term.setTextColor(colors.green)
-print("[DONE] Boot sequence is completed...")
-
+term.write("[DONE] Boot sequence is completed...")
+term.setTextColor(colors.white)
sleep(3)
shell.run(desktop) \ No newline at end of file