aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-05-14 00:46:18 +0000
committerRob Landley <rob@landley.net>2005-05-14 00:46:18 +0000
commit9ea8836357d0f2b53319cb54c032d307cf2533be (patch)
treeb19c1725047103ee4c6ca0fc8eba9d946edfa2e9 /include
parent1ece21bddd6780aef82dafa481187bda43174a72 (diff)
downloadbusybox-w32-9ea8836357d0f2b53319cb54c032d307cf2533be.tar.gz
busybox-w32-9ea8836357d0f2b53319cb54c032d307cf2533be.tar.bz2
busybox-w32-9ea8836357d0f2b53319cb54c032d307cf2533be.zip
Add automatic umount support to eject command. Patch from Tito,
with tweaks from Mike Frysinger and Rob Landley. Note: this will still fail to umount a path that contains an ' or \ character. Is it worth the extra size to filter for that?
Diffstat (limited to 'include')
-rw-r--r--include/usage.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/usage.h b/include/usage.h
index f1ae92316..d63498553 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -565,18 +565,12 @@
565 "$ echo \"Erik\\nis\\ncool\"\n" \ 565 "$ echo \"Erik\\nis\\ncool\"\n" \
566 "Erik\\nis\\ncool\n") 566 "Erik\\nis\\ncool\n")
567 567
568#ifdef CONFIG_FEATURE_EJECT_LONG_OPTIONS
569# define USAGE_EJECT_TRAYCLOSE ",trayclose"
570#else
571# define USAGE_EJECT_TRAYCLOSE ""
572#endif
573
574#define eject_trivial_usage \ 568#define eject_trivial_usage \
575 "[-t] [DEVICE]" 569 "[-t] [DEVICE]"
576#define eject_full_usage \ 570#define eject_full_usage \
577 "Eject specified DEVICE (or default /dev/cdrom).\n\n" \ 571 "Eject specified DEVICE (or default /dev/cdrom).\n\n" \
578 "Options:\n" \ 572 "Options:\n" \
579 "\t-t" USAGE_EJECT_TRAYCLOSE "\tclose tray" 573 "\t-t\tclose tray"
580 574
581#define env_trivial_usage \ 575#define env_trivial_usage \
582 "[-iu] [-] [name=value]... [command]" 576 "[-iu] [-] [name=value]... [command]"