diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-07-14 20:37:47 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-07-14 20:37:47 -0400 |
| commit | fc5532b16318599cb7acce820132f0c99ed68cc3 (patch) | |
| tree | 7e51d6f0a0df9b8ee28623a92a880c4536ada7a5 /system/post-setup.lua | |
| parent | 50bd2373002c80c83e1c79afea83342ba64eb8ff (diff) | |
| download | bits-UI-fc5532b16318599cb7acce820132f0c99ed68cc3.tar.gz bits-UI-fc5532b16318599cb7acce820132f0c99ed68cc3.tar.bz2 bits-UI-fc5532b16318599cb7acce820132f0c99ed68cc3.zip | |
New things!
Diffstat (limited to 'system/post-setup.lua')
| -rw-r--r-- | system/post-setup.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/system/post-setup.lua b/system/post-setup.lua index 78a80d1..1e6bfe0 100644 --- a/system/post-setup.lua +++ b/system/post-setup.lua @@ -12,9 +12,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ]]-- - ---local passwd = read() ---local passPath = "/etc/passwd.pwd" os.loadAPI("/system/apis/sha256.lua") term.clear() @@ -37,7 +34,16 @@ else print("[ERROR] Unable to find the background...") end ---print("Welcome to the setup! This feature will be not be in Alpha 2") +print("Welcome to the bits-UI Post Setup!") +sleep(2) +print("Please enter your password.") +print("(Don't set your real password in servers.)") +local passPath = "/etc/passwd.pwd" +local passwd = read(" ") +local insertPasswd = fs.open(passPath, "a") +insertPasswd.writeLine(passwd) +insertPasswd.close() +print("Thanks, I will save that.") sleep(1) shell.run("/system/desktop.lua")
\ No newline at end of file |
