diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-12 22:16:24 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-12 22:16:24 +0000 |
commit | 89afc3a1d5b86c064e7da32c542d931cb73eca2b (patch) | |
tree | cd733661220fd539d93c1c3156dc1e2a2318d345 /contrib/package/freifunk-watchdog/files | |
parent | 153d28729894409f19c2455df9ea158ddd1815cd (diff) |
contrib/package/freifunk-watchdog:
- poll /dev/watchdog if available
- also monitor dropbear
Diffstat (limited to 'contrib/package/freifunk-watchdog/files')
-rwxr-xr-x | contrib/package/freifunk-watchdog/files/freifunk-watchdog.init | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/package/freifunk-watchdog/files/freifunk-watchdog.init b/contrib/package/freifunk-watchdog/files/freifunk-watchdog.init index 9ca43754d7..1cce46b4af 100755 --- a/contrib/package/freifunk-watchdog/files/freifunk-watchdog.init +++ b/contrib/package/freifunk-watchdog/files/freifunk-watchdog.init @@ -10,6 +10,10 @@ boot() echo "* * * * * $BIN running || /etc/init.d/freifunk-watchdog restart" >> /etc/crontabs/root fi + if lsmod | grep -q softdog; then + mknod /dev/watchdog c 10 130 + fi + start } |