diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-20 17:07:08 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-20 17:07:08 +0000 |
commit | cfe1bc11adee94c4ce07d50fb960429fa17350aa (patch) | |
tree | 3419f13e77f12fd7e4895309acc4e86058e8ec75 /package/base-files/files/etc/init.d/watchdog | |
parent | a525c056d5909a50939374270859d5955bdb16fc (diff) | |
download | upstream-cfe1bc11adee94c4ce07d50fb960429fa17350aa.tar.gz upstream-cfe1bc11adee94c4ce07d50fb960429fa17350aa.tar.bz2 upstream-cfe1bc11adee94c4ce07d50fb960429fa17350aa.zip |
base-files: only try to execute watchdog if binary is present
SVN-Revision: 18102
Diffstat (limited to 'package/base-files/files/etc/init.d/watchdog')
-rwxr-xr-x | package/base-files/files/etc/init.d/watchdog | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/watchdog b/package/base-files/files/etc/init.d/watchdog index adb8f57c13..861a1f9eb0 100755 --- a/package/base-files/files/etc/init.d/watchdog +++ b/package/base-files/files/etc/init.d/watchdog @@ -3,5 +3,6 @@ START=97 start() { - [ -c /dev/watchdog ] && watchdog -t 5 /dev/watchdog + [ -c /dev/watchdog ] && [ -x /sbin/watchdog ] && \ + watchdog -t 5 /dev/watchdog } |