Fix CD-ROM Ejection

Fixes FS#10206
Setting the drive to autoeject causes
udevadm trigger to always eject the device
if it isn't mounted.

Signed-off-by: Simo Leone <simo@archlinux.org>
This commit is contained in:
Simo Leone 2008-06-21 19:06:42 -05:00
parent a53cf77e3f
commit 99ed5349b3

View File

@ -76,7 +76,7 @@ run_hook ()
if [ -d /proc/sys/dev/cdrom ]; then if [ -d /proc/sys/dev/cdrom ]; then
echo 0 > /proc/sys/dev/cdrom/lock echo 0 > /proc/sys/dev/cdrom/lock
echo 1 > /proc/sys/dev/cdrom/autoeject echo 0 > /proc/sys/dev/cdrom/autoeject
fi fi
if [ "${break}" = "y" ]; then if [ "${break}" = "y" ]; then