Advertisement
gelatine87

install

May 9th, 2024 (edited)
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | Gaming | 0 0
  1. -- Function for downloading a file from Pastebin
  2. local function downloadFromPastebin(pastebinID, filePath)
  3.     shell.run("pastebin get " .. pastebinID .. " " .. filePath)
  4.     print("File successfully downloaded: " .. filePath)
  5. end
  6.  
  7. local installFilePath = "install"
  8.  
  9. -- Downloading the button file from Pastebin and saving it as a button program
  10. local buttonPastebinID = "ky8K7KJa"
  11. local buttonFilePath = "button"
  12. downloadFromPastebin(buttonPastebinID, buttonFilePath)
  13.  
  14. -- Downloading the startup file from Pastebin and saving it as a startup program
  15. local startupPastebinID = "KPkADYX5"
  16. local startupFilePath = "startup"
  17. downloadFromPastebin(startupPastebinID, startupFilePath)
  18.  
  19. -- Restarting the computer
  20. print("Installation process completed. The computer will now reboot.")
  21. os.sleep(2) -- Waiting to ensure the output can be read
  22.  
  23. -- Deleting the install file
  24. fs.delete(installFilePath)
  25.  
  26. os.reboot() -- Rebooting the computer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement