mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:55:55 +02:00
[package] base-files: only try to execute watchdog if binary is present
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18102 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1f8108678d
commit
11adc3d3d9
@ -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