diff options
Diffstat (limited to 'util-linux/fsck_minix.c')
-rw-r--r-- | util-linux/fsck_minix.c | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index 74281a7..ea27c23 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c @@ -288,25 +288,24 @@ static void leave(int status) exit(status); } -static void show_usage(void) -{ - fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n\n", - BB_VER, BB_BT); - fprintf(stderr, "Usage: %s [-larvsmf] /dev/name\n", applet_name); +const char fsck_minix_usage[] = + "Usage: fsck.minix [-larvsmf] /dev/name\n" #ifndef BB_FEATURE_TRIVIAL_HELP - fprintf(stderr, - "\nPerforms a consistency check for MINIX filesystems.\n\n"); - fprintf(stderr, "Options:\n"); - fprintf(stderr, "\t-l\tLists all filenames\n"); - fprintf(stderr, "\t-r\tPerform interactive repairs\n"); - fprintf(stderr, "\t-a\tPerform automatic repairs\n"); - fprintf(stderr, "\t-v\tverbose\n"); - fprintf(stderr, "\t-s\tOutputs super-block information\n"); - fprintf(stderr, - "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n"); - fprintf(stderr, "\t-f\tForce file system check.\n\n"); + "\nPerforms a consistency check for MINIX filesystems.\n\n" + "Options:\n" + "\t-l\tLists all filenames\n" + "\t-r\tPerform interactive repairs\n" + "\t-a\tPerform automatic repairs\n" + "\t-v\tverbose\n" + "\t-s\tOutputs super-block information\n" + "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n" + "\t-f\tForce file system check.\n\n" #endif - leave(16); + ; + +static void show_usage(void) +{ + usage(fsck_minix_usage); } static void die(const char *str) |