diff options
| author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-09-16 09:10:04 +0000 |
|---|---|---|
| committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-09-16 09:10:04 +0000 |
| commit | 18b76e6f8047edf2e9e3d8fcc962a2e40ed8ffbd (patch) | |
| tree | a43358d389b2e594341e993c7a86d44369244423 /include | |
| parent | 8fede28c7408b2231a50c88da22c2e07f26f6d56 (diff) | |
| download | busybox-w32-18b76e6f8047edf2e9e3d8fcc962a2e40ed8ffbd.tar.gz busybox-w32-18b76e6f8047edf2e9e3d8fcc962a2e40ed8ffbd.tar.bz2 busybox-w32-18b76e6f8047edf2e9e3d8fcc962a2e40ed8ffbd.zip | |
Watch applet by Michael Habermann
Diffstat (limited to 'include')
| -rw-r--r-- | include/applets.h | 3 | ||||
| -rw-r--r-- | include/usage.h | 12 |
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 @@ | |||
| 532 | #ifdef CONFIG_VLOCK | 532 | #ifdef CONFIG_VLOCK |
| 533 | APPLET(vlock, vlock_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS) | 533 | APPLET(vlock, vlock_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS) |
| 534 | #endif | 534 | #endif |
| 535 | #ifdef CONFIG_WATCH | ||
| 536 | APPLET(watch, watch_main, _BB_DIR_BIN, _BB_SUID_NEVER) | ||
| 537 | #endif | ||
| 535 | #ifdef CONFIG_WATCHDOG | 538 | #ifdef CONFIG_WATCHDOG |
| 536 | APPLET(watchdog, watchdog_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | 539 | APPLET(watchdog, watchdog_main, _BB_DIR_SBIN, _BB_SUID_NEVER) |
| 537 | #endif | 540 | #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 @@ | |||
| 2076 | "Options:\n" \ | 2076 | "Options:\n" \ |
| 2077 | "\t-a\tLock all VTs" | 2077 | "\t-a\tLock all VTs" |
| 2078 | 2078 | ||
| 2079 | #define watch_trivial_usage \ | ||
| 2080 | "[-n <seconds>] COMMAND..." | ||
| 2081 | #define watch_full_usage \ | ||
| 2082 | "Executes a program periodically.\n" \ | ||
| 2083 | "Options:\n" \ | ||
| 2084 | "\t-n\tLoop period in seconds - default is 2." | ||
| 2085 | #define watch_example_usage \ | ||
| 2086 | "$ watch date\n" \ | ||
| 2087 | "Mon Dec 17 10:31:40 GMT 2000\n" \ | ||
| 2088 | "Mon Dec 17 10:31:42 GMT 2000\n" \ | ||
| 2089 | "Mon Dec 17 10:31:44 GMT 2000" | ||
| 2090 | |||
| 2079 | #define watchdog_trivial_usage \ | 2091 | #define watchdog_trivial_usage \ |
| 2080 | "DEV" | 2092 | "DEV" |
| 2081 | #define watchdog_full_usage \ | 2093 | #define watchdog_full_usage \ |
