aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-11-26 22:00:21 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-11-26 22:00:21 +0000
commit441e7efc72cdaf628d85b3c77d27df1008c43142 (patch)
treebad3eba18ca05aa67fd18ddea046f397ac9fc689 /include
parent0ff941e1c32247582f89e4e6f0696ae6c02ed584 (diff)
downloadbusybox-441e7efc72cdaf628d85b3c77d27df1008c43142.tar.gz
fdisk applet by Vladimir N. Oleynik
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h11
2 files changed, 14 insertions, 0 deletions
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