aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h12
2 files changed, 15 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index d5c257052..de07cc960 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -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
diff --git a/include/usage.h b/include/usage.h
index 968823e54..1cdaa6681 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -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 \