Advertisement
programcreator

OmniOS: first run

Aug 11th, 2015
2,322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. --[[
  2.   OmniOS first time run
  3. ]]--
  4.  
  5. print("Do you wish to run OmniOS at startup? <y/n>")
  6. answer = read()
  7. if answer:lower() == "y" then
  8.   file = fs.open("startup","w")
  9.   file.write("shell.run(\"OmniOS/BIOS.lua\")")
  10.   file.close()
  11. end
  12. --[[print("Do you want to use a password? <y/n>")
  13. answer = read()
  14. if answer:lower() == "y" then
  15.   shell.run("pastebin run nkcbHKBp")
  16.   print("Please type the password for the admin account:")
  17.   p = read()
  18.   file = fs.open("OmniOS/Settings/Users/Admin","w")
  19.   file.write(sha256(p))
  20.   file.close()
  21.   fs.open("OmniOS/Settings/doLogin","w").close()
  22. end]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement