Advertisement
kssr3951

atupd5 install disk

Jan 23rd, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local function fileOverwrite(filePath, text)
  2.   local hFile = fs.open(filePath, "w")
  3.   hFile.writeLine(text)
  4.   hFile.close()
  5. end
  6.  
  7. shell.run("rm /atupd5")
  8. shell.run("copy /disk/atupd5 /atupd5")
  9. shell.run("rm /netRescue")
  10. shell.run("copy /disk/atupd5 /netRescue")
  11. disk.eject("top")
  12. fileOverwrite("/startup", "shell.run(\"/atupd5\")")
  13. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement