История изменений
Исправление bormant, (текущая версия) :
отдельный eject
Отдельный в дистрибутиве уже давно, а из util-linux не использовался.
По ключам они не тождественны. хотя сильно похожи:
-дистрибутивный:
eject --help
Eject version 2.1.5 by Jeff Tranter (tranter@pobox.com)
Usage:
eject -h -- display command usage and exit
eject -V -- display program version and exit
eject [-vnrsfqpm] [<name>] -- eject device
eject [-vn] -d -- display default device
eject [-vn] -a on|off|1|0 [<name>] -- turn auto-eject feature on or off
eject [-vn] -c <slot> [<name>] -- switch discs on a CD-ROM changer
eject [-vn] -t [<name>] -- close tray
eject [-vn] -T [<name>] -- toggle tray
eject [-vn] -x <speed> [<name>] -- set CD-ROM max speed
eject [-vn] -X [<name>] -- list CD-ROM available speeds
Options:
-v -- enable verbose output
-n -- don't eject, just show device found
-r -- eject CD-ROM
-s -- eject SCSI device
-f -- eject floppy
-q -- eject tape
-p -- use /proc/mounts instead of /etc/mtab
-m -- do not unmount device even if it is mounted
Long options:
-h --help -v --verbose -d --default
-a --auto -c --changerslot -t --trayclose -x --cdspeed
-r --cdrom -s --scsi -f --floppy -X --listspeed -q --tape
-n --noop -V --version
-p --proc -m --no-unmount -T --traytoggle
Parameter <name> can be a device file or a mount point.
If omitted, name defaults to `cdrom'.
By default tries -r, -s, -f, and -q in order until success.
- из util-linux:
fputs(_(" -a, --auto <on|off> turn auto-eject feature on or off\n"
" -c, --changerslot <slot> switch discs on a CD-ROM changer\n"
" -d, --default display default device\n"
" -f, --floppy eject floppy\n"
" -F, --force don't care about device type\n"
" -i, --manualeject <on|off> toggle manual eject protection on/off\n"
" -m, --no-unmount do not unmount device even if it is mounted\n"
" -M, --no-partitions-unmount do not unmount another partitions\n"
" -n, --noop don't eject, just show device found\n"
" -p, --proc use /proc/mounts instead of /etc/mtab\n"
" -q, --tape eject tape\n"
" -r, --cdrom eject CD-ROM\n"
" -s, --scsi eject SCSI device\n"
" -t, --trayclose close tray\n"
" -T, --traytoggle toggle tray\n"
" -v, --verbose enable verbose output\n"
" -x, --cdspeed <speed> set CD-ROM max speed\n"
" -X, --listspeed list CD-ROM available speeds\n"),
Есть ли разница в поведении — тестировать надо.
Исходная версия bormant, :
отдельный eject
Отдельный в дистрибутиве уже давно, а в util-linux только появился.
По ключам они не тождественны. хотя сильно похожи:
-дистрибутивный:
eject --help
Eject version 2.1.5 by Jeff Tranter (tranter@pobox.com)
Usage:
eject -h -- display command usage and exit
eject -V -- display program version and exit
eject [-vnrsfqpm] [<name>] -- eject device
eject [-vn] -d -- display default device
eject [-vn] -a on|off|1|0 [<name>] -- turn auto-eject feature on or off
eject [-vn] -c <slot> [<name>] -- switch discs on a CD-ROM changer
eject [-vn] -t [<name>] -- close tray
eject [-vn] -T [<name>] -- toggle tray
eject [-vn] -x <speed> [<name>] -- set CD-ROM max speed
eject [-vn] -X [<name>] -- list CD-ROM available speeds
Options:
-v -- enable verbose output
-n -- don't eject, just show device found
-r -- eject CD-ROM
-s -- eject SCSI device
-f -- eject floppy
-q -- eject tape
-p -- use /proc/mounts instead of /etc/mtab
-m -- do not unmount device even if it is mounted
Long options:
-h --help -v --verbose -d --default
-a --auto -c --changerslot -t --trayclose -x --cdspeed
-r --cdrom -s --scsi -f --floppy -X --listspeed -q --tape
-n --noop -V --version
-p --proc -m --no-unmount -T --traytoggle
Parameter <name> can be a device file or a mount point.
If omitted, name defaults to `cdrom'.
By default tries -r, -s, -f, and -q in order until success.
- из util-linux:
fputs(_(" -a, --auto <on|off> turn auto-eject feature on or off\n"
" -c, --changerslot <slot> switch discs on a CD-ROM changer\n"
" -d, --default display default device\n"
" -f, --floppy eject floppy\n"
" -F, --force don't care about device type\n"
" -i, --manualeject <on|off> toggle manual eject protection on/off\n"
" -m, --no-unmount do not unmount device even if it is mounted\n"
" -M, --no-partitions-unmount do not unmount another partitions\n"
" -n, --noop don't eject, just show device found\n"
" -p, --proc use /proc/mounts instead of /etc/mtab\n"
" -q, --tape eject tape\n"
" -r, --cdrom eject CD-ROM\n"
" -s, --scsi eject SCSI device\n"
" -t, --trayclose close tray\n"
" -T, --traytoggle toggle tray\n"
" -v, --verbose enable verbose output\n"
" -x, --cdspeed <speed> set CD-ROM max speed\n"
" -X, --listspeed list CD-ROM available speeds\n"),