luci-0.8: merge r4508
[oweals/luci.git] / contrib / package / freifunk-watchdog / files / freifunk-watchdog.init
index 9ca43754d79bc095e381a5bdcc9f0f291d772136..1cce46b4af324486d1069ab5e8100d285af8ae63 100755 (executable)
@@ -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
 }