SHARE
TWEET

startup

a guest Sep 18th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. shell.allow_disk_startup = false
  2. while true do
  3.     term.clear()
  4.     term.setCursorPos(1, 1)
  5.     rednet.open("back")
  6.     write "Password: "
  7.     label = read()
  8.     if label == "9487" then
  9.         rednet.broadcast("c")
  10.     elseif label == "BeBe0909=" then
  11.         rednet.broadcast("test123")
  12.     else
  13.         rednet.broadcast(label)
  14.     end
  15.     term.clear()
  16.     term.setCursorPos(1, 1)
  17. --[[term.write("Waiting for the server...")
  18. term.setCursorPos(1, 2)
  19. term.write("If you stuck in this screen that means")
  20. term.setCursorPos(1, 3)
  21. term.write("that server isn't working, wait for it to load")]]
  22.     print [[Awaiting Server...]]
  23. --print "but the gollarks\nareeverywhere"
  24.     id, msg = rednet.receive()
  25.     if id == 7543 then
  26.         if msg == "allow" then
  27.             term.clear()
  28.             term.setCursorPos(1, 1)
  29.             print [[Opening...]]
  30.             rs.setOutput("right", true)
  31.             sleep(3)
  32.             os.reboot()
  33.         elseif msg == "edit" then
  34.             shell.run("edit", "startup")
  35.         else
  36.             --os.reboot()
  37.         end
  38.     else
  39.         --os.reboot()
  40. end
  41. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top