From 441e7efc72cdaf628d85b3c77d27df1008c43142 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Tue, 26 Nov 2002 22:00:21 +0000 Subject: fdisk applet by Vladimir N. Oleynik --- include/applets.h | 3 +++ include/usage.h | 11 +++++++++++ 2 files changed, 14 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index e8bcb0e4b..a85a8bfcb 100644 --- a/include/applets.h +++ b/include/applets.h @@ -185,6 +185,9 @@ #ifdef CONFIG_FDFLUSH APPLET(fdflush, fdflush_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif +#ifdef CONFIG_FDISK + APPLET(fdisk, fdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_FIND APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) #endif diff --git a/include/usage.h b/include/usage.h index 3677dff7a..568899b6d 100644 --- a/include/usage.h +++ b/include/usage.h @@ -521,6 +521,17 @@ #define fdflush_full_usage \ "Forces floppy disk drive to detect disk change" +#define fdisk_trivial_usage \ + "[-l] [-v] [-b SSZ] [-u] DISK" +#define fdisk_full_usage \ + "Change partition table\n" \ + "Options:\n" \ + "-l List partition table(s)\n" \ + "-u Give Start and End in sector (instead of cylinder) units\n" \ + "-s PARTITION Give partition size(s) in blocks\n" \ + "-b 2048: (for certain MO disks) use 2048-byte sectors\n" \ + "-v Give fdisk version\n" + #ifdef CONFIG_FEATURE_FIND_TYPE #define USAGE_FIND_TYPE(a) a #else -- cgit v1.2.3