[BusyBox-cvs] busybox/include usage.h,1.158,1.159

Erik Andersen andersen at busybox.net
Tue Jul 22 07:39:23 UTC 2003


Update of /var/cvs/busybox/include
In directory winder:/tmp/cvs-serv28226/include

Modified Files:
	usage.h 
Log Message:
Paul Mundt <lethal at 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.



Index: usage.h
===================================================================
RCS file: /var/cvs/busybox/include/usage.h,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -d -r1.158 -r1.159
--- usage.h	22 Jul 2003 07:30:36 -0000	1.158
+++ usage.h	22 Jul 2003 07:39:18 -0000	1.159
@@ -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]..."




More information about the busybox-cvs mailing list