Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ComputerName = "computer_455"
- ButtonInputSide = "bottom"
- Computer = peripheral.wrap(ComputerName)
- function RestartComputer()
- Computer.reboot()
- end
- function Main()
- term.clear()
- term.setCursorPos(1, 1)
- print("ME System Info Restarter lol")
- while true do
- os.pullEvent("redstone")
- if (rs.getInput(ButtonInputSide)) then
- print("Restarting the computer...")
- RestartComputer()
- print("Success!")
- end
- end
- end
- Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement