summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger2005-05-11 00:25:47 +0000
committerMike Frysinger2005-05-11 00:25:47 +0000
commit55e2cf6533582ba0e795176103df0df22436b230 (patch)
tree861e274991d9290735776b7f38b6b18861da1598 /include
parentfb6d22c96c1147014294b30c97e7b912db36bfed (diff)
downloadbusybox-55e2cf6533582ba0e795176103df0df22436b230.zip
busybox-55e2cf6533582ba0e795176103df0df22436b230.tar.gz
import eject by Peter Willis / Tito Ragusa
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h13
2 files changed, 16 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 7f6f758..3f411c2 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -182,6 +182,9 @@
#if defined(CONFIG_FEATURE_GREP_EGREP_ALIAS)
APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_EJECT
+ APPLET(eject, eject_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_ENV
APPLET(env, env_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
diff --git a/include/usage.h b/include/usage.h
index 1ef79df..316772e 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -556,6 +556,19 @@
"$ echo \"Erik\\nis\\ncool\"\n" \
"Erik\\nis\\ncool\n")
+#ifdef CONFIG_FEATURE_EJECT_LONG_OPTIONS
+# define USAGE_EJECT_TRAYCLOSE ",trayclose"
+#else
+# define USAGE_EJECT_TRAYCLOSE ""
+#endif
+
+#define eject_trivial_usage \
+ "[-t] [DEVICE]"
+#define eject_full_usage \
+ "Eject specified DEVICE (or default /dev/cdrom).\n\n" \
+ "Options:\n" \
+ "\tt" USAGE_EJECT_TRAYCLOSE "\tclose tray"
+
#define env_trivial_usage \
"[-iu] [-] [name=value]... [command]"
#define env_full_usage \