diff options
author | Rob Landley <rob@landley.net> | 2005-08-20 09:07:08 +0400 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-08-20 09:07:08 +0400 |
commit | d00b3a5e944e7499bd061c0b8f9d9f0847528fce (patch) | |
tree | 2bec1c6e32716bf8bc204ed411e6287ee728e3f9 /include | |
parent | fc3f048f8f6de2132c83bbd1124dabd0990a952b (diff) |
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.h | 3 | ||||
-rw-r--r-- | include/usage.h | 14 |
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 \ |