aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-07-22 07:39:18 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-07-22 07:39:18 +0000
commit89595bd42fb99bc4da9d1b01941a5fadd2c3d300 (patch)
tree819a67150ee269aa34b58b8189f190e8ab5a8cb5 /include
parentebef0e42b05ce0f2f00d654a553c0d8273bd6fbd (diff)
downloadbusybox-w32-89595bd42fb99bc4da9d1b01941a5fadd2c3d300.tar.gz
busybox-w32-89595bd42fb99bc4da9d1b01941a5fadd2c3d300.tar.bz2
busybox-w32-89595bd42fb99bc4da9d1b01941a5fadd2c3d300.zip
Paul Mundt <lethal@linux-sh.org> writes:
Here's a bunch of fixes for the watchdog app in busybox. This does a couple of things: - configurable timer duration (userspace timer duration is usually configurable within the device drivers themselves). - run as a daemon - shutdown the device properly on SIGINT or SIGHUP - clear the counter immediately instead of sleeping first as well as updating the usage information. This has also been switched over to getopt to deal with the optional timer duration specifier. The changes themselves are harmless and isolated, and I've veried that this works on sh and x86 without any problems. git-svn-id: svn://busybox.net/trunk/busybox@7083 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r--include/usage.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h
index 6f8558800..094eae8d9 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2620,9 +2620,11 @@
2620 "Mon Dec 17 10:31:44 GMT 2000" 2620 "Mon Dec 17 10:31:44 GMT 2000"
2621 2621
2622#define watchdog_trivial_usage \ 2622#define watchdog_trivial_usage \
2623 "DEV" 2623 "[-t <seconds>] DEV"
2624#define watchdog_full_usage \ 2624#define watchdog_full_usage \
2625 "Periodically write to watchdog device DEV" 2625 "Periodically write to watchdog device DEV.\n" \
2626 "Options:\n" \
2627 "\t-t\tTimer period in seconds - default is 30."
2626 2628
2627#define wc_trivial_usage \ 2629#define wc_trivial_usage \
2628 "[OPTION]... [FILE]..." 2630 "[OPTION]... [FILE]..."