base-files: only try to execute watchdog if binary is present

SVN-Revision: 18102
owl
Jo-Philipp Wich 2009-10-20 17:07:08 +00:00
parent a525c056d5
commit cfe1bc11ad
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=base-files PKG_NAME:=base-files
PKG_RELEASE:=32 PKG_RELEASE:=33
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/

View File

@ -3,5 +3,6 @@
START=97 START=97
start() { start() {
[ -c /dev/watchdog ] && watchdog -t 5 /dev/watchdog [ -c /dev/watchdog ] && [ -x /sbin/watchdog ] && \
watchdog -t 5 /dev/watchdog
} }