From aa4e280b69493b013385fee5c8c45725d0e9366e Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 17 Oct 2019 13:11:26 -0400 Subject: stuff --- startup.lua | 4 ++-- 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 -- cgit v1.2.3