fryedchikin
Regular Contributor
Hi Everyone, This is a question for all you scripting experts.
I am running 378.53 on an RT-68P and would like to know how to trigger a script after an unexpected reboot occurs.
I currently have a wan-start script to perform some actions but obviously it runs every time the router reboots. I need to move these actions to a separate script which will only execute after an unexpected reboot or loss of WAN connectivity (such as a power outage or ISP outage). If the router is intentionally rebooted manually via the UI or via a cron job I would not want the script to run.
Any help would be greatly appreciated.
Thanks!
I am running 378.53 on an RT-68P and would like to know how to trigger a script after an unexpected reboot occurs.
I currently have a wan-start script to perform some actions but obviously it runs every time the router reboots. I need to move these actions to a separate script which will only execute after an unexpected reboot or loss of WAN connectivity (such as a power outage or ISP outage). If the router is intentionally rebooted manually via the UI or via a cron job I would not want the script to run.
Any help would be greatly appreciated.
Thanks!