summaryrefslogtreecommitdiff
path: root/package/busybox/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-01-30 13:12:43 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-01-30 13:12:43 +0100
commit5af89f5f951db199840e83b49d240f47eacdd0c2 (patch)
treebf43f5d4f27d740522e5a1e65b2a488862f5839e /package/busybox/files
parent276e47c2fae8adc759cf8672cc9f60e2cebbfb0c (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/files')
-rw-r--r--package/busybox/files/busybox.postinst5
-rw-r--r--package/busybox/files/watchdog.init2
2 files changed, 4 insertions, 3 deletions
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