Advertisement
the_lad

NEOTInstallServer

Apr 7th, 2023 (edited)
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local args = {...}
  2. if args[1] or args[2] == null then
  3.     printError("Usage Error: >InstallServer {modem side} {server #}")
  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. local file = fs.open(".server", "w")
  15. file.write(args[2])
  16. file.close()
  17. print("Install Complete")
  18. sleep(1)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement