KnotMeDaddy

ShutdownOS

Aug 30th, 2018
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.47 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. function dl(url, name)
  3. --Shamelessly stolen from gollark's skynet
  4. print("Downloading ".. name)
  5. local a=http.get(url)local b=fs.open(name,"w")b.write(a.readAll())a.close()
  6. end
  7.  
  8. if settings.get("shutdownos.dontnuke") then
  9.   --Deletes leftover files
  10.   for _, file in pairs(fs.list "/") do
  11.     if not fs.isReadOnly(file) or fs.getName(file) == ".settings" then
  12.       fs.delete(file)
  13.     end
  14.   end
  15. end
  16.  
  17. --Prevents a method to disable boot up
  18. settings.set("shell.allow_startup", true)
  19. --Prevents an uninstallation method
  20. settings.set("shell.allow_disk_startup", false)
  21. --Sets the password to Not Set
  22. if settings.get("shutdownos.password") then
  23.   print("Existing install detected.")
  24. else
  25.   settings.set("shutdownos.password", "Not Set")
  26. end
  27.  
  28.  
  29.  
  30. --Debugging
  31. --settings.set("shutdownos.shell", true)
  32.  
  33. --Saves the settings
  34. settings.save(".settings")
  35.  
  36. --Crash Manager
  37. dl("https://pastebin.com/raw/yV5RbFQH", "startup")
  38.  
  39. --Core
  40. dl("https://pastebin.com/raw/tnfiMuKP", "core")
  41.  
  42. --Bundled Program Crash Manager
  43. dl("https://pastebin.com/raw/ZPgjSPBP", "noshell")
  44.  
  45. --Skynet (Required API for networking)
  46. dl("https://raw.githubusercontent.com/osmarks/skynet/master/client.lua", "skynet")
  47.  
  48. --Potato Farm (Required for PotatOS command)
  49. dl("https://pastebin.com/raw/2rsUWAMa", "potatofarm")
  50.  
  51. --ShutdownEdit (Edit without the Run feature)
  52. dl("https://pastebin.com/raw/C0NWVyMw", "shutdownedit")
  53.  
  54. --Bundled programs (Not required but spices stuff up)
  55. dl("https://raw.githubusercontent.com/LDDestroier/CC/master/tron.lua", "/programs/tron")
  56.  
  57. dl("https://raw.githubusercontent.com/Ale32bit/Loading/master/loading.lua", "/programs/loading")
  58.  
  59. dl("https://raw.githubusercontent.com/osmarks/Loading/master/loading.lua", "/programs/loadingfork")
  60.  
  61. dl("https://pastebin.com/raw/wYBZjQhN", "/programs/potatoplex")
  62.  
  63. dl("https://pastebin.com/raw/FHwuDkQD", "/programs/screensaver")
  64.  
  65. dl("https://pastebin.com/raw/styiy98d", "/programs/sctracker")
  66.  
  67. --Reupload because there is no standalone version (Original: "https://pastebin.com/raw/wKdMTPwQ)
  68. dl("https://pastebin.com/raw/50MrT2fG", "/programs/potatonet")
  69.  
  70. dl("https://pastebin.com/raw/tDe6g6gw", "/programs/jumpinggame")
  71.  
  72. dl("https://pastebin.com/raw/SFuBaAKT", "/programs/infloop")
  73.  
  74. dl("https://github.com/LDDestroier/enchat/raw/master/enchat3.lua", "/programs/enchat3")
  75.  
  76. dl("https://pastebin.com/raw/bj3qj1Pj", "/programs/strafe")
  77.  
  78. dl("https://pastebin.com/raw/L7Ns6qiD", "/programs/dembois")
  79.  
  80. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment