Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- settings.load()
- local function MakeLog( message, error, whileRunning )
- local file = fs.open("/crash_report.log", "w")
- file.write("[CRITICAL ERROR WHILE " .. whileRunning .. "]\n[ERROR] " .. error .. " : " .. message)
- file.close()
- end
- print("Welcome to recovery programm!\n")
- print("We are looking for a problem on your")
- print("computer to try recover it!")
- term.clear()
- term.setCursorPos(1,1)
- print("\nWe found problem and we are recovering")
- print("your computer!")
- sleep(5)
- if not fs.exists("/boot/init") then
- shell.run("pastebin get MKAUF1aB /boot/init")
- end
- if not fs.exists("/bin/main") then
- shell.run("pastebin get tdiZwXAi /bin/main")
- end
- if not fs.exists("/bin/.UninstallDialog") then
- shell.run("pastebin get zdSEmGNM /bin/.UninstallDialog")
- end
- if not fs.exists("/bin/.command") then
- shell.run("pastebin get nH47yXMJ /bin/.command")
- end
- if not fs.exists("/bin/.programs") then
- shell.run("pastebin get u5nCuSmc /bin/.programs")
- end
- if not fs.exists("/bin/.shutdown") then
- shell.run("pastebin get T4hMDcjM /bin/.shutdown")
- end
- if not fs.exists("/bin/.uninstall") then
- shell.run("pastebin get dvFUiJ7k /bin/.uninstall")
- end
- if not fs.exists("/bin/install") then
- shell.run("pastebin get pRKZLKge /bin/install")
- end
- if not fs.exists("/usr/bin/getFiles") then
- shell.run("pastebin get XVFay6kL /usr/bin/getFiles")
- end
- if not fs.exists("/usr/bin/sendFiles") then
- shell.run("pastebin get eggHuRDr /usr/bin/sendFiles")
- end
- if not fs.exists("/usr/bin/browser") then
- shell.run("pastebin get n0TYWPg0 /usr/bin/browser")
- end
- if not fs.exists("/bin/.sleep") then
- shell.run("pastebin get Z2TD7KJD /bin/.sleep")
- end
- print("Rebooting in 3 seconds")
- sleep(3)
- settings.set("bootFailed", 0)
- settings.save()
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment