Just a suggestion, but you could cut your files in half by making watchdog do all the work. "watchdog <timeout>" to run watchdog as a demon, "watchdog 0" to turn it off, and "watchdog shutdown" to shut down the iliad immediately.
Perhaps even "watchdog reboot" and also time delayed operations like "watchdog <shutdown|reboot> <delay>"
Cheers, glen.
|