diff options
Diffstat (limited to 'miscutils/watchdog.c')
-rw-r--r-- | miscutils/watchdog.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c index 630782660..b24dd4b82 100644 --- a/miscutils/watchdog.c +++ b/miscutils/watchdog.c | |||
@@ -9,6 +9,17 @@ | |||
9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | //usage:#define watchdog_trivial_usage | ||
13 | //usage: "[-t N[ms]] [-T N[ms]] [-F] DEV" | ||
14 | //usage:#define watchdog_full_usage "\n\n" | ||
15 | //usage: "Periodically write to watchdog device DEV\n" | ||
16 | //usage: "\nOptions:" | ||
17 | //usage: "\n -T N Reboot after N seconds if not reset (default 60)" | ||
18 | //usage: "\n -t N Reset every N seconds (default 30)" | ||
19 | //usage: "\n -F Run in foreground" | ||
20 | //usage: "\n" | ||
21 | //usage: "\nUse 500ms to specify period in milliseconds" | ||
22 | |||
12 | #include "libbb.h" | 23 | #include "libbb.h" |
13 | #include "linux/types.h" /* for __u32 */ | 24 | #include "linux/types.h" /* for __u32 */ |
14 | #include "linux/watchdog.h" | 25 | #include "linux/watchdog.h" |