Marlingaming

Boot Handler - Update Controller

Jan 11th, 2022 (edited)
782
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. --this script handles Update Requests
  2. version = "1.0.0"
  3. local tArg = {...}
  4.  
  5. function BootUpdates()
  6. print("Updating Menu")
  7. shell.run("os/os_Programs/os_Updater","os/os_Programs/os_MainScript","8zek1eez")
  8. print("Updating Security")
  9.  
  10. print("Updating Client")
  11. shell.run("os/os_Programs/os_Updater","os/os_Programs/os_AccountPgScript","rMHdqVe8")
  12. print("Boot Updates Completed")
  13. end
  14.  
  15. if tArg[1] == "Boot" then
  16.     BootUpdates()
  17. elseif tArg[1] == "enable" then
  18.     local file = fs.open("os/os_SystemFiles/UpdateFile")
  19.     file.write("enabled on "..os.date())
  20.     file.close()
  21. elseif tArg[1] == "Program" then
  22.    
  23. end
Add Comment
Please, Sign In to add comment