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:
parent
a53cf77e3f
commit
99ed5349b3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user