aboutsummaryrefslogtreecommitdiff
path: root/System/boot.lua
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-11-16 15:25:12 -0500
committerAndrew Lee <alee14498@protonmail.com>2020-11-16 15:25:12 -0500
commit59acb51a3297917dd8eebc84ea85abd91e7803df (patch)
tree974eef8030e1bc1e49017a38c7ffa31b00f5f47a /System/boot.lua
parentfb04d5143b20194f98955bd2d151cc80ef00c1a9 (diff)
downloadbits-UI-59acb51a3297917dd8eebc84ea85abd91e7803df.tar.gz
bits-UI-59acb51a3297917dd8eebc84ea85abd91e7803df.tar.bz2
bits-UI-59acb51a3297917dd8eebc84ea85abd91e7803df.zip
Some fixes with files; Reduced sleep on boot
Diffstat (limited to 'System/boot.lua')
-rw-r--r--System/boot.lua23
1 files changed, 7 insertions, 16 deletions
diff --git a/System/boot.lua b/System/boot.lua
index 4b3227f..35d212b 100644
--- a/System/boot.lua
+++ b/System/boot.lua
@@ -14,28 +14,25 @@
]]--
local version = "1.0 Alpha 2"
-local desktop = "/system/desktop.lua"
+local desktop = "/System/desktop.lua"
term.clear()
term.setCursorPos(1,1)
print("Starting up bits-UI ".. version .."...")
-sleep(1)
print(_HOST)
-sleep(1)
if term.isColor() then
term.setTextColor(colors.green)
print("[OK] Advanced Computer is detected...")
else
print("[ERROR] You need a advanced computer in order to make the UI functional...")
- sleep(3)
+ sleep(2)
os.shutdown()
end
-sleep(1)
if fs.exists(desktop) then
term.setTextColor(colors.green)
@@ -47,9 +44,7 @@ else
os.shutdown()
end
-sleep(1)
-
-if fs.exists("/home") then
+if fs.exists("/Home") then
term.setTextColor(colors.green)
print("[OK] Home has been found...")
else
@@ -67,24 +62,20 @@ else
print("[OK] Etc directory has been created...")
end
-sleep(1)
-
-if fs.exists("/home/.config") then
+if fs.exists("/Home/.config") then
term.setTextColor(colors.green)
print("[OK] Config has been found...")
else
- config = io.open("/home/.config", "w")
+ config = io.open("/Home/.config", "w")
config:close()
term.setTextColor(colors.blue)
print("[INFO] Config has not been found!")
print("[INFO] You will be sent to the post installation setup...")
sleep(2)
- shell.run("/system/post-setup.lua")
+ shell.run("/System/post-setup.lua")
end
-
-sleep(1)
term.setTextColor(colors.green)
print("[DONE] Boot sequence has been completed...")
term.setTextColor(colors.white)
-sleep(1)
+sleep(3)
shell.run(desktop) \ No newline at end of file