Guest User

NEOTInstallServer

a guest
Apr 7th, 2023
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local args = {...}
  2. if args[1] == null then
  3.     printError("Usage Error: >InstallServer {modem side}")
  4. else
  5. shell.run("cd /")
  6. if fs.exists("startup") then
  7.  shell.run("rm startup")
  8.  shell.run("rm startup.lua")
  9. end
  10. shell.run("pastebin get yPP4fTGu startup")
  11. local file = fs.open(".rnconfig", "w")
  12. file.write(args[1])
  13. file.close()
  14. print("Install Complete")
  15. sleep(1)
  16. end
Add Comment
Please, Sign In to add comment