From cfe1bc11adee94c4ce07d50fb960429fa17350aa Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 20 Oct 2009 17:07:08 +0000 Subject: base-files: only try to execute watchdog if binary is present SVN-Revision: 18102 --- package/base-files/files/etc/init.d/watchdog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'package/base-files/files') 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 } -- cgit v1.2.3