Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- if args[1] or args[2] == null then
- printError("Usage Error: >InstallServer {modem side} {server #}")
- else
- shell.run("cd /")
- if fs.exists("startup") then
- shell.run("rm startup")
- shell.run("rm startup.lua")
- end
- shell.run("pastebin get yPP4fTGu startup")
- local file = fs.open(".rnconfig", "w")
- file.write(args[1])
- file.close()
- local file = fs.open(".server", "w")
- file.write(args[2])
- file.close()
- print("Install Complete")
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement