* Most of the dirty work blatantly ripped off from cat.c =)
*/
//config:config EJECT
-//config: bool "eject"
+//config: bool "eject (4.1 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
-//config: Used to eject cdroms. (defaults to /dev/cdrom)
+//config: Used to eject cdroms. (defaults to /dev/cdrom)
//config:
//config:config FEATURE_EJECT_SCSI
//config: bool "SCSI support"
//config: default y
//config: depends on EJECT
//config: help
-//config: Add the -s option to eject, this allows to eject SCSI-Devices and
-//config: usb-storage devices.
+//config: Add the -s option to eject, this allows to eject SCSI-Devices and
+//config: usb-storage devices.
//applet:IF_EJECT(APPLET(eject, BB_DIR_USR_BIN, BB_SUID_DROP))
unsigned flags;
const char *device;
- opt_complementary = "?1:t--T:T--t";
- flags = getopt32(argv, "tT" IF_FEATURE_EJECT_SCSI("s"));
+ flags = getopt32(argv, "^" "tT"IF_FEATURE_EJECT_SCSI("s")
+ "\0" "?1:t--T:T--t"
+ );
device = argv[optind] ? argv[optind] : "/dev/cdrom";
/* We used to do "umount <device>" here, but it was buggy