diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-03-06 15:04:04 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-03-06 15:04:04 -0500 |
| commit | 34e25ebda57a7f5a4f28d0ff923ae27daf5c68b2 (patch) | |
| tree | 1e1e4ef27a885e8602ab9941e7b98a16f3aa0d8a /system/boot.lua | |
| parent | ab94bab7e3d45b58084388b0cd5d247790a00005 (diff) | |
| download | bits-UI-34e25ebda57a7f5a4f28d0ff923ae27daf5c68b2.tar.gz bits-UI-34e25ebda57a7f5a4f28d0ff923ae27daf5c68b2.tar.bz2 bits-UI-34e25ebda57a7f5a4f28d0ff923ae27daf5c68b2.zip | |
Another big change!
Diffstat (limited to 'system/boot.lua')
| -rw-r--r-- | system/boot.lua | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/system/boot.lua b/system/boot.lua index 3361100..08d5d64 100644 --- a/system/boot.lua +++ b/system/boot.lua @@ -20,7 +20,7 @@ term.clear() term.setCursorPos(1,1) print("Starting up bits-UI ".. version .."...") -sleep(3) +sleep(2) if term.isColor() then term.setTextColor(colors.green) @@ -31,7 +31,7 @@ else os.shutdown() end -sleep(3) +sleep(2) if fs.exists(desktop) then term.setTextColor(colors.green) @@ -43,7 +43,7 @@ else os.shutdown() end -sleep(3) +sleep(2) if fs.exists("/home") then term.setTextColor(colors.green) @@ -54,7 +54,16 @@ else print("[OK] Home directory has been created...") end -sleep(3) +if fs.exists("/etc") then + term.setTextColor(colors.green) + print("[OK] Etc has been found...") +else + fs.makeDir("/etc") + term.setTextColor(colors.green) + print("[OK] Etc directory has been created...") +end + +sleep(2) if fs.exists("/home/.config") then term.setTextColor(colors.green) @@ -69,9 +78,9 @@ else shell.run("/system/post-setup.lua") end -sleep(3) +sleep(2) term.setTextColor(colors.green) print("[DONE] Boot sequence is completed...") term.setTextColor(colors.white) -sleep(3) +sleep(2) shell.run(desktop)
\ No newline at end of file |
