mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-19 06:54:58 +01:00
base-files: only try to execute watchdog if binary is present
SVN-Revision: 18102
This commit is contained in:
parent
a525c056d5
commit
cfe1bc11ad
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=base-files
|
||||
PKG_RELEASE:=32
|
||||
PKG_RELEASE:=33
|
||||
|
||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user