aboutsummaryrefslogtreecommitdiff
path: root/system/post-setup.lua
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@gmail.com>2019-10-17 13:11:26 -0400
committerAndrew Lee <alee14498@gmail.com>2019-10-17 13:11:26 -0400
commitaa4e280b69493b013385fee5c8c45725d0e9366e (patch)
treeb8a3ae39de9d0b1d232f038d30da7b5248aa702a /system/post-setup.lua
parentfe08446d84e0aa939780ad013f0545778703da6d (diff)
downloadbits-UI-aa4e280b69493b013385fee5c8c45725d0e9366e.tar.gz
bits-UI-aa4e280b69493b013385fee5c8c45725d0e9366e.tar.bz2
bits-UI-aa4e280b69493b013385fee5c8c45725d0e9366e.zip
stuff
Diffstat (limited to 'system/post-setup.lua')
-rw-r--r--system/post-setup.lua38
1 files changed, 22 insertions, 16 deletions
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