Advertisement
thatparadox

RemoteReboot

Oct 28th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. for k,v in pairs(rs.getSides()) do
  2.   if peripheral.getType(v) == "modem" then
  3.    rednet.open(v)
  4.   end
  5. end
  6.  
  7. while true do
  8.   ID, message = rednet.receive(33)
  9.   if message == "abort" then
  10.     os.reboot()
  11.   end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement