+ 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
+ eject -p -m /live/image >/dev/null 2>&1
+ # TODO: detect CD
+ MEDIUM="DVD"
+ MESSAGE="Please remove the ${MEDIUM}, close the ${MEDIUM} tray (if any)"
+ fi
+ MESSAGE="${MESSAGE} and press ENTER:"