summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen2003-07-22 07:39:18 +0000
committerEric Andersen2003-07-22 07:39:18 +0000
commitcde8f53c6054d35e1ec327bb2952aebeadc9ae48 (patch)
tree819a67150ee269aa34b58b8189f190e8ab5a8cb5 /include
parent592ebd507a444a69e6d0f2183060fbb1c795eac4 (diff)
downloadbusybox-cde8f53c6054d35e1ec327bb2952aebeadc9ae48.zip
busybox-cde8f53c6054d35e1ec327bb2952aebeadc9ae48.tar.gz
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.
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 6f85588..094eae8 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2620,9 +2620,11 @@
"Mon Dec 17 10:31:44 GMT 2000"
#define watchdog_trivial_usage \
- "DEV"
+ "[-t <seconds>] DEV"
#define watchdog_full_usage \
- "Periodically write to watchdog device DEV"
+ "Periodically write to watchdog device DEV.\n" \
+ "Options:\n" \
+ "\t-t\tTimer period in seconds - default is 30."
#define wc_trivial_usage \
"[OPTION]... [FILE]..."