Advise user to close the CD tray if necessary
Bug #13023 reported by
Jean Privat
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
casper (Ubuntu) |
Fix Released
|
Low
|
Matt Zimmerman |
Bug Description
On the live CD array-5, on shutdown/reboot, the disk is ejected and the computer
ask you to press enter then halt/reboot. Maybe he have to close the cd reader
just after enter is pressed.
To post a comment you must log in.
It depends of the device, but anyway there is a interface to deal with that in dev/cdrom/ autoclose dev/cdrom/ lock dev/cdrom/ autoeject
the /proc:
/proc/sys/
/proc/sys/
/proc/sys/
And there is a eject's option to close: udeb/usr/ share/casper/ shutdown 2005-03-04 18:38:19.000000000 +0000 udeb_new/ usr/share/ casper/ shutdown 2005-03-04 23:15:29.189829983 +0000
eject -t
Something like:
<patch-0>
--- casper-
+++ casper-
@@ -37,4 +37,6 @@
echo -n "Please remove the disc and press ENTER: "
read x
+eject -t
+
exit 0
</patch-0>
But I'd like to change the current code to something like: udeb/usr/ share/casper/ shutdown 2005-03-04 18:38:19.000000000 +0000 udeb_new/ usr/share/ casper/ shutdown 2005-03-04 23:11:41.970298224 +0000
<patch-1>
--- casper-
+++ casper-
@@ -31,7 +31,9 @@
cache_path "$path"
done
-eject -p -m /cdrom dev/cdrom/ lock dev/cdrom/ autoeject dev/cdrom/ autoclose
+echo 0 > /proc/sys/
+echo 1 > /proc/sys/
+echo 1 > /proc/sys/
# XXX - i18n
echo -n "Please remove the disc and press ENTER: "
</patch-1>
OR
<patch-2> udeb/usr/ share/casper/ shutdown 2005-03-04 18:38:19.000000000 +0000 udeb_new/ usr/share/ casper/ shutdown 2005-03-04 23:13:17.353186475 +0000
--- casper-
+++ casper-
@@ -31,7 +31,9 @@
cache_path "$path"
done
-eject -p -m /cdrom autoeject= 1 autoclose= 1
+sysctl -w dev.cdrom.lock=0
+sysctl -w dev.cdrom.
+sysctl -w dev.cdrom.
# XXX - i18n
echo -n "Please remove the disc and press ENTER: "
</patch-2>
And after any cdrom device who is umounted open byself and after, it's suppesed
to close. But of course, that depends fo the device..... not all the devices
support that :(