Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ping = os.execute("ping -c 1 8.8.8.8")
- if ping ~= 0 then
- luup.log("Auto Reboot: Network down. Aborted.")
- else
- luup.log("Auto Reboot: Network OK. Rebooting in 2 seconds.")
- luup.sleep(2000)
- os.execute("reboot")
- end
Advertisement
Add Comment
Please, Sign In to add comment