-- Function for downloading a file from Pastebin
local function downloadFromPastebin(pastebinID, filePath)
shell.run("pastebin get " .. pastebinID .. " " .. filePath)
print("File successfully downloaded: " .. filePath)
end
local installFilePath = "install"
-- Downloading the button file from Pastebin and saving it as a button program
local buttonPastebinID = "ky8K7KJa"
local buttonFilePath = "button"
downloadFromPastebin(buttonPastebinID, buttonFilePath)
-- Downloading the startup file from Pastebin and saving it as a startup program
local startupPastebinID = "KPkADYX5"
local startupFilePath = "startup"
downloadFromPastebin(startupPastebinID, startupFilePath)
-- Restarting the computer
print("Installation process completed. The computer will now reboot.")
os.sleep(2) -- Waiting to ensure the output can be read
-- Deleting the install file
fs.delete(installFilePath)
os.reboot() -- Rebooting the computer
Comments