Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if fs.exists("ssh") == true then
- shell.run("rm ssh")
- end
- if fs.exists("dns") == true then
- shell.run("rm dns")
- end
- if fs.exists("open") == true then
- shell.run("rm open")
- end
- if fs.exists("close") == true then
- shell.run("rm close")
- end
- shell.run("pastebin get FnBb0vFE ssh")
- shell.run("pastebin get ZuDbvKXA dns")
- shell.run("pastebin get bqDQPkGx open")
- shell.run("pastebin get 77hUjE85 close")
- print("Sûr quel face est le wireless ?")
- con = read()
- print("Nom du pc ?")
- local name = read()
- rednet.open(con)
- shell.run("dns register "..name)
- rednet.close(con)
- shell.run("label set "..name)
- print(name.." id : "..os.getComputerID())
- if fs.exists("startup") == true then
- shell.run("rm startup")
- end
- f = fs.open("startup", "w")
- f.writeLine('rednet.open("'..con..'")')
- f.close()
- print("reboot dans 10 s")
- sleep(10)
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement