From f3d57ee3a0e94076ad9454468e42140ff7ccdaed Mon Sep 17 00:00:00 2001 From: Alee Date: Mon, 4 Mar 2019 20:33:00 -0500 Subject: added new stuff! --- .gitignore | 2 ++ startup | 45 +++++++++++++++++++++++++++++++++++++++++++++ system/desktop.lua | 1 + 3 files changed, 48 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2272205 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +home/ +system/bitUI.config diff --git a/startup b/startup index dc21ea7..fbc5ba1 100644 --- a/startup +++ b/startup @@ -6,5 +6,50 @@ 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 + file = io.open("/system/bitUI.config", "w") + file:close() + + print("[ INFO ] Config has not been found!") + print("[ INFO ] You will be sent to the OOBE setup...") +end + +sleep(3) + +print("[ INFO ] Boot sequence is completed...") + sleep(3) shell.run(desktop) \ No newline at end of file diff --git a/system/desktop.lua b/system/desktop.lua index 5136c71..e1dec2c 100644 --- a/system/desktop.lua +++ b/system/desktop.lua @@ -1,3 +1,4 @@ term.clear() term.setCursorPos(1,1) +term.setBackgroundColor(colors.white) print("Welcome to the desktop where nothing happens... Yet!") \ No newline at end of file -- cgit v1.2.3