diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-30 13:12:43 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-30 13:12:43 +0100 |
commit | 5af89f5f951db199840e83b49d240f47eacdd0c2 (patch) | |
tree | bf43f5d4f27d740522e5a1e65b2a488862f5839e /package/busybox | |
parent | 276e47c2fae8adc759cf8672cc9f60e2cebbfb0c (diff) |
enable watchdog on rb532 by default, use busybox applet.
the package/watchdog could also be used, if more checks
are required. (high load, free memory,..)
Diffstat (limited to 'package/busybox')
-rw-r--r-- | package/busybox/Makefile | 4 | ||||
-rw-r--r-- | package/busybox/files/busybox.postinst | 5 | ||||
-rw-r--r-- | package/busybox/files/watchdog.init | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/package/busybox/Makefile b/package/busybox/Makefile index 37f50bdd6..b2509c937 100644 --- a/package/busybox/Makefile +++ b/package/busybox/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:= busybox PKG_VERSION:= 1.15.2 -PKG_RELEASE:= 2 +PKG_RELEASE:= 3 PKG_MD5SUM:= 495e320537f0772125f2db3c098e437c PKG_DESCR:= Core utilities for embedded Linux systems PKG_SECTION:= base @@ -51,7 +51,7 @@ else $(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \ IPKG_ARCH="$(ARCH)" ARCH="$(ARCH)" HOSTCC="$(HOSTCC)" -C $(WRKBUILD) install endif -ifeq ($(DEBUG),1) +ifeq ($(ADK_DEBUG),y) ${INSTALL_BIN} $(WRKBUILD)/busybox_unstripped \ $(IDIR_BUSYBOX)/bin/busybox endif diff --git a/package/busybox/files/busybox.postinst b/package/busybox/files/busybox.postinst index 761fb777d..71d18be30 100644 --- a/package/busybox/files/busybox.postinst +++ b/package/busybox/files/busybox.postinst @@ -2,6 +2,7 @@ . $IPKG_INSTROOT/etc/functions.sh add_rcconf network network YES add_rcconf crond crond NO -add_rcconf watchdog watchdog NO +add_rcconf watchdog watchdog YES +add_rcconf watchdog_flags watchdog_flags '-t 10 -T 20' add_rcconf 'use "-C32" normally, "NO" to disable' syslogd_flags '-C32' -add_rcconf inetd +add_rcconf inetd inetd NO diff --git a/package/busybox/files/watchdog.init b/package/busybox/files/watchdog.init index c5d0e9545..3aad38380 100644 --- a/package/busybox/files/watchdog.init +++ b/package/busybox/files/watchdog.init @@ -10,7 +10,7 @@ autostart) exec sh $0 start ;; start) - watchdog /dev/watchdog + watchdog $watchdog_flags /dev/watchdog ;; stop) pkill watchdog |