Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: xXm0dzXx on May 21st, 2012  |  syntax: None  |  size: 0.25 KB  |  hits: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. shell.run("clear")
  2. rednet.open("top")
  3.  
  4. function boot()
  5.         shell.run("shell")
  6. end
  7.  
  8. function deboot()
  9.         while true do
  10.                 id, message = rednet.receive()
  11.                 if message == "deboot" then
  12.                         shutdown()
  13.                 end
  14.         end
  15. end
  16.  
  17. parallel.waitForAny(deboot, boot)