xXm0dzXx

Untitled

May 21st, 2012
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. shell.run("clear")
  2. rednet.open("top")
  3.  
  4. function boot()
  5. shell.run("boot")
  6. end
  7.  
  8. function deboot()
  9. while true do
  10. id, message = rednet.receive()
  11. if message == "shutdown" then
  12. os.shutdown()
  13. end
  14. end
  15. end
  16.  
  17. parallel.waitForAny(deboot, boot)
Advertisement
Add Comment
Please, Sign In to add comment