summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthew Stoltenberg2009-08-13 00:59:32 +0200
committerDenys Vlasenko2009-08-13 00:59:32 +0200
commit4803db53b874aa5182944927c10d632333ad4f0e (patch)
tree0f1a0569497f1135ca269a56292a9f0b233b6e88 /include
parentdbfa45b3b23d882a7ff3e9ef4bf84378e6b9a4a8 (diff)
downloadbusybox-4803db53b874aa5182944927c10d632333ad4f0e.zip
busybox-4803db53b874aa5182944927c10d632333ad4f0e.tar.gz
volname: new applet
function old new delta volname_main - 90 +90 packed_usage 26373 26387 +14 applet_names 2078 2086 +8 applet_main 1232 1236 +4 applet_nameofs 616 618 +2 applet_install_loc 154 155 +1 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/0 up/down: 119/0) Total: 119 bytes Signed-off-by: Matthew Stoltenberg <d3matt@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index e1b09cc..cb1ed56 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -416,6 +416,7 @@ IF_UUENCODE(APPLET(uuencode, _BB_DIR_USR_BIN, _BB_SUID_DROP))
IF_VCONFIG(APPLET(vconfig, _BB_DIR_SBIN, _BB_SUID_DROP))
IF_VI(APPLET(vi, _BB_DIR_BIN, _BB_SUID_DROP))
IF_VLOCK(APPLET(vlock, _BB_DIR_USR_BIN, _BB_SUID_REQUIRE))
+IF_VOLNAME(APPLET(volname, _BB_DIR_USR_BIN, _BB_SUID_DROP))
IF_WATCH(APPLET(watch, _BB_DIR_BIN, _BB_SUID_DROP))
IF_WATCHDOG(APPLET(watchdog, _BB_DIR_SBIN, _BB_SUID_DROP))
IF_WC(APPLET(wc, _BB_DIR_USR_BIN, _BB_SUID_DROP))
diff --git a/include/usage.h b/include/usage.h
index 5aedeab..accda33 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -4901,6 +4901,11 @@ IF_FEATURE_TUNCTL_UG( \
"\nOptions:" \
"\n -a Lock all VTs" \
+#define volname_trivial_usage \
+ "[DEVICE]"
+#define volname_full_usage "\n\n" \
+ "Show CD volume name of the DEVICE (default /dev/cdrom)"
+
#define watch_trivial_usage \
"[-n seconds] [-t] PROG [ARGS]"
#define watch_full_usage "\n\n" \