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.
This commit is contained in:
parent
592ebd507a
commit
cde8f53c60
2 changed files with 47 additions and 13 deletions
|
@ -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]..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue