From cde8f53c6054d35e1ec327bb2952aebeadc9ae48 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 22 Jul 2003 07:39:18 +0000 Subject: Paul Mundt 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. --- include/usage.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/usage.h') 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 @@ "Mon Dec 17 10:31:44 GMT 2000" #define watchdog_trivial_usage \ - "DEV" + "[-t ] 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]..." -- cgit v1.2.3