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:
@@ -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]"
|
||||
|
Reference in New Issue
Block a user