Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1, 1)
- while true do
- print("r, s or o ?")
- local sRep = read()
- if sRep == "r" then
- peripheral.find("computer", function(name, object) object.reboot() end)
- elseif sRep == "s" then
- peripheral.find("computer", function(name, object) object.shutdown() end)
- elseif sRep == "o" then
- peripheral.find("computer", function(name, object) object.turnOn() end)
- end
- end
Add Comment
Please, Sign In to add comment