[backfire] merge r21588 and r21591
[openwrt-10.03/.git] / package / base-files / files / etc / init.d / watchdog
index b9286f7de4a116446bc26f28bedd56496bd595ff..861a1f9eb04d412c09bf376e83503183aa9fe846 100755 (executable)
@@ -3,5 +3,6 @@
 
 START=97
 start() {
-        [ -c /dev/watchtog ] && watchdog -t 5 /dev/watchdog
+        [ -c /dev/watchdog ] && [ -x /sbin/watchdog ] && \
+               watchdog -t 5 /dev/watchdog
 }