From 89afc3a1d5b86c064e7da32c542d931cb73eca2b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 12 May 2009 22:16:24 +0000 Subject: contrib/package/freifunk-watchdog: - poll /dev/watchdog if available - also monitor dropbear --- contrib/package/freifunk-watchdog/files/freifunk-watchdog.init | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contrib/package/freifunk-watchdog/files') diff --git a/contrib/package/freifunk-watchdog/files/freifunk-watchdog.init b/contrib/package/freifunk-watchdog/files/freifunk-watchdog.init index 9ca43754d..1cce46b4a 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 } -- cgit v1.2.3