aboutsummaryrefslogtreecommitdiff
path: root/System/post-setup.lua
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-11-16 15:25:12 -0500
committerAndrew Lee <alee14498@protonmail.com>2020-11-16 15:25:12 -0500
commit59acb51a3297917dd8eebc84ea85abd91e7803df (patch)
tree974eef8030e1bc1e49017a38c7ffa31b00f5f47a /System/post-setup.lua
parentfb04d5143b20194f98955bd2d151cc80ef00c1a9 (diff)
downloadbits-UI-59acb51a3297917dd8eebc84ea85abd91e7803df.tar.gz
bits-UI-59acb51a3297917dd8eebc84ea85abd91e7803df.tar.bz2
bits-UI-59acb51a3297917dd8eebc84ea85abd91e7803df.zip
Some fixes with files; Reduced sleep on boot
Diffstat (limited to 'System/post-setup.lua')
-rw-r--r--System/post-setup.lua26
1 files changed, 13 insertions, 13 deletions
diff --git a/System/post-setup.lua b/System/post-setup.lua
index 18f289f..94c9d65 100644
--- a/System/post-setup.lua
+++ b/System/post-setup.lua
@@ -12,9 +12,9 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
]]--
-os.loadAPI("/system/apis/sha256.lua")
-os.loadAPI("/system/apis/json.lua")
-local config = "/home/.config"
+os.loadAPI("/System/apis/sha256.lua")
+os.loadAPI("/System/apis/json.lua")
+local config = "/Home/.config"
term.clear()
term.setCursorPos(1,1)
@@ -22,7 +22,7 @@ term.setTextColor(colors.white)
print("Welcome to the bits-UI Post Setup!")
sleep(2)
-print("Please enter your password.")
+--[[print("Please enter your password.")
--print("(Don't set your real password in servers.)")
local passPath = "/etc/passwd.pwd"
@@ -40,25 +40,25 @@ end
sleep(3)
term.clear()
term.setCursorPos(1,1)
-term.setTextColor(colors.white)
+term.setTextColor(colors.white)]]--
print("Copying files to local user.")
-fs.makeDir("/home/Documents")
-fs.makeDir("/home/Downloads")
-fs.makeDir("/home/Pictures")
+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")
+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")
+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
+shell.run("/System/desktop.lua") \ No newline at end of file