diff options
Diffstat (limited to 'fsck_minix.c')
-rw-r--r-- | fsck_minix.c | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/fsck_minix.c b/fsck_minix.c index 74281a71e..ea27c236c 100644 --- a/fsck_minix.c +++ b/fsck_minix.c | |||
@@ -288,25 +288,24 @@ static void leave(int status) | |||
288 | exit(status); | 288 | exit(status); |
289 | } | 289 | } |
290 | 290 | ||
291 | static void show_usage(void) | 291 | const char fsck_minix_usage[] = |
292 | { | 292 | "Usage: fsck.minix [-larvsmf] /dev/name\n" |
293 | fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n\n", | ||
294 | BB_VER, BB_BT); | ||
295 | fprintf(stderr, "Usage: %s [-larvsmf] /dev/name\n", applet_name); | ||
296 | #ifndef BB_FEATURE_TRIVIAL_HELP | 293 | #ifndef BB_FEATURE_TRIVIAL_HELP |
297 | fprintf(stderr, | 294 | "\nPerforms a consistency check for MINIX filesystems.\n\n" |
298 | "\nPerforms a consistency check for MINIX filesystems.\n\n"); | 295 | "Options:\n" |
299 | fprintf(stderr, "Options:\n"); | 296 | "\t-l\tLists all filenames\n" |
300 | fprintf(stderr, "\t-l\tLists all filenames\n"); | 297 | "\t-r\tPerform interactive repairs\n" |
301 | fprintf(stderr, "\t-r\tPerform interactive repairs\n"); | 298 | "\t-a\tPerform automatic repairs\n" |
302 | fprintf(stderr, "\t-a\tPerform automatic repairs\n"); | 299 | "\t-v\tverbose\n" |
303 | fprintf(stderr, "\t-v\tverbose\n"); | 300 | "\t-s\tOutputs super-block information\n" |
304 | fprintf(stderr, "\t-s\tOutputs super-block information\n"); | 301 | "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n" |
305 | fprintf(stderr, | 302 | "\t-f\tForce file system check.\n\n" |
306 | "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n"); | ||
307 | fprintf(stderr, "\t-f\tForce file system check.\n\n"); | ||
308 | #endif | 303 | #endif |
309 | leave(16); | 304 | ; |
305 | |||
306 | static void show_usage(void) | ||
307 | { | ||
308 | usage(fsck_minix_usage); | ||
310 | } | 309 | } |
311 | 310 | ||
312 | static void die(const char *str) | 311 | static void die(const char *str) |