From 59acb51a3297917dd8eebc84ea85abd91e7803df Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 16 Nov 2020 15:25:12 -0500 Subject: Some fixes with files; Reduced sleep on boot --- System/post-setup.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'System/post-setup.lua') 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 -- cgit v1.2.3