Topic: How to Remove the "Please remove the disc, close the tray" Message
This is to remove the hard pause and the CD eject message when powering down Statler, running from a persistent Live-USB key:
1) Browse (as root) to /etc/init.d/live-boot.
2) Make backup copy of the file.
3) Open file with Gedit (right click and select "Open as root").
4) Remove EXACTLY these lines only: lines 150 - 177 (highlight them and delete).
5) Save file, you are done!
Here are the lines that need to be removed (they start on line 151 but, I take out the line of space at 150):
if [ -z ${QUICKREBOOT} ]
then
# Exit if the system was booted from an ISO image rather than a physical CD
grep -qs find_iso= /proc/cmdline && return 0
# TODO: i18n
BOOT_DEVICE="$(get_boot_device)"
if device_is_USB_flash_drive ${BOOT_DEVICE}
then
# do NOT eject USB flash drives!
# otherwise rebooting with most USB flash drives
# failes because they actually remember the
# "ejected" state even after reboot
MESSAGE="Please remove the USB flash drive"
else
# ejecting is a very good idea here
MESSAGE="Please remove the disc, close the the tray (if any)"
if [ -x /usr/bin/eject ]
then
eject -p -m /live/image >/dev/null 2>&1
fi
fi
[ "$prompt" ] || return 0 Last edited by nolatux (2010-09-17 17:40:41)