diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-10-17 13:11:26 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-10-17 13:11:26 -0400 |
| commit | aa4e280b69493b013385fee5c8c45725d0e9366e (patch) | |
| tree | b8a3ae39de9d0b1d232f038d30da7b5248aa702a | |
| parent | fe08446d84e0aa939780ad013f0545778703da6d (diff) | |
| download | bits-UI-aa4e280b69493b013385fee5c8c45725d0e9366e.tar.gz bits-UI-aa4e280b69493b013385fee5c8c45725d0e9366e.tar.bz2 bits-UI-aa4e280b69493b013385fee5c8c45725d0e9366e.zip | |
stuff
| -rw-r--r-- | startup.lua | 4 | ||||
| -rw-r--r-- | system/post-setup.lua | 38 |
2 files changed, 24 insertions, 18 deletions
diff --git a/startup.lua b/startup.lua index 8456680..fc472cc 100644 --- a/startup.lua +++ b/startup.lua @@ -23,7 +23,7 @@ function bootloader() print("Welcome to the BUBL boot loader!\n") term.setCursorPos(1,2) if fs.exists("/.git") then - print("Version ".. bVersion .. "-GIT") + print("Version ".. bVersion .. "-DEV") else print("Version ".. bVersion) end @@ -109,4 +109,4 @@ else end clear() bootloader() -bootloaderInput()
\ No newline at end of file +bootloaderInput() diff --git a/system/post-setup.lua b/system/post-setup.lua index 2adc201..2ed8b70 100644 --- a/system/post-setup.lua +++ b/system/post-setup.lua @@ -20,22 +20,6 @@ term.clear() term.setCursorPos(1,1) term.setTextColor(colors.white) -fs.makeDir("/home/Documents") -fs.makeDir("/home/Downloads") -fs.makeDir("/home/Pictures") - -if fs.exists("/system/skel/README.txt") then - shell.run("copy", "/system/skel/README.txt", "/home/Documents") -else - print("[ERROR] Unable to find README.txt...") -end - -if fs.exists("/system/skel/.background") then - shell.run("copy", "/system/skel/.background", "/home") -else - print("[ERROR] Unable to find the background...") -end - print("Welcome to the bits-UI Post Setup!") sleep(2) print("Please enter your password.") @@ -53,6 +37,28 @@ else insertPasswd.close() print("Thanks, I will save that.") end +sleep(3) +term.clear() +term.setCursorPos(1,1) +term.setTextColor(colors.white) +print("Copying files to local user.") + +fs.makeDir("/home/Documents") +fs.makeDir("/home/Downloads") +fs.makeDir("/home/Pictures") +if fs.exists("/system/skel/README.txt") then + shell.run("copy", "/system/skel/README.txt", "/home/Documents") +else + print("[ERROR] Unable to find README.txt...") +end + +if fs.exists("/system/skel/.background") then + shell.run("copy", "/system/skel/.background", "/home") +else + print("[ERROR] Unable to find the background...") +end sleep(1) +print("Finished copying files.") +sleep(2) shell.run("/system/desktop.lua")
\ No newline at end of file |
