From 59acb51a3297917dd8eebc84ea85abd91e7803df Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 16 Nov 2020 15:25:12 -0500 Subject: Some fixes with files; Reduced sleep on boot --- System/boot.lua | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'System/boot.lua') 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 -- cgit v1.2.3