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?
This commit is contained in:
Rob Landley
2005-05-14 00:46:18 +00:00
parent 1ece21bddd
commit 9ea8836357
3 changed files with 24 additions and 34 deletions

View File

@@ -565,18 +565,12 @@
"$ 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" \
"\t-t" USAGE_EJECT_TRAYCLOSE "\tclose tray"
"\t-t\tclose tray"
#define env_trivial_usage \
"[-iu] [-] [name=value]... [command]"