aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-08-20 05:07:08 +0000
committerRob Landley <rob@landley.net>2005-08-20 05:07:08 +0000
commitd00b3a5e944e7499bd061c0b8f9d9f0847528fce (patch)
tree2bec1c6e32716bf8bc204ed411e6287ee728e3f9 /include
parentfc3f048f8f6de2132c83bbd1124dabd0990a952b (diff)
downloadbusybox-d00b3a5e944e7499bd061c0b8f9d9f0847528fce.tar.gz
Bernhard Fischer provided a mountpoint(1) applet. This is apparently something
sysvinit provides, and which is used by the debian init scripts.
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h14
2 files changed, 17 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index e2fe25167..a4e78af57 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -435,6 +435,9 @@
#ifdef CONFIG_MOUNT
APPLET(mount, mount_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_MOUNTPOINT
+ APPLET(mountpoint, mountpoint_main, _BB_DIR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_MSH
APPLET_NOUSAGE("msh", msh_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
diff --git a/include/usage.h b/include/usage.h
index dc8058a20..662227818 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1922,6 +1922,20 @@
"$ mount /dev/fd0 /mnt -t msdos -o ro\n" \
"$ mount /tmp/diskimage /opt -t ext2 -o loop\n"
+#define mountpoint_trivial_usage \
+ "[-q] <[-d] DIR | -x DEVICE>"
+#define mountpoint_full_usage \
+ "mountpoint checks if the directory is a mountpoint\n\n" \
+ "Options:\n" \
+ "\t-q:\t\tBe more quiet\n" \
+ "\t-d:\t\tPrint major/minor device number of the filesystem\n" \
+ "\t-x:\t\tPrint major/minor device number of the blockdevice"
+#define mountpoint_example_usage \
+ "$ mountpoint /proc\n" \
+ "/proc is not a mountpoint\n" \
+ "$ mountpoint /sys\n" \
+ "/sys is a mountpoint\n"
+
#define mt_trivial_usage \
"[-f device] opcode value"
#define mt_full_usage \