Watch applet by Michael Habermann

This commit is contained in:
Glenn L McGrath
2002-09-16 09:10:04 +00:00
parent 8fede28c74
commit 18b76e6f80
3 changed files with 119 additions and 0 deletions

View File

@@ -532,6 +532,9 @@
#ifdef CONFIG_VLOCK
APPLET(vlock, vlock_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
#endif
#ifdef CONFIG_WATCH
APPLET(watch, watch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_WATCHDOG
APPLET(watchdog, watchdog_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
#endif

View File

@@ -2076,6 +2076,18 @@
"Options:\n" \
"\t-a\tLock all VTs"
#define watch_trivial_usage \
"[-n <seconds>] COMMAND..."
#define watch_full_usage \
"Executes a program periodically.\n" \
"Options:\n" \
"\t-n\tLoop period in seconds - default is 2."
#define watch_example_usage \
"$ watch date\n" \
"Mon Dec 17 10:31:40 GMT 2000\n" \
"Mon Dec 17 10:31:42 GMT 2000\n" \
"Mon Dec 17 10:31:44 GMT 2000"
#define watchdog_trivial_usage \
"DEV"
#define watchdog_full_usage \