Community,
when running BT4PF in persistent LiveUSB mode, it's (at least from my perspective) rather annoying that casper prompts you to eject the LiveCD and press ENTER upon halt/reboot like
Please remove the disc and close the tray (if any) then press ENTER:
Fortunately it's rather easy to get rid of this message and I'd herewith like to share the solution with the community. So, here we go:
1st Step: Modify the lines 82-96 of /etc/init.d/casper appropriately. The result should look like
Code:
# eject -p -m /cdrom >/dev/null 2>&1
[ "$prompt" ] || return 0
stty sane < /dev/console
# XXX - i18n
# echo "Please remove the disc and close the tray (if any) then press ENTER: " > /dev/console
# if [ -x /sbin/usplash_write ]; then
# /sbin/usplash_write "TIMEOUT 86400"
# /sbin/usplash_write "TEXT-URGENT Please remove the disc, close the tray (if any)"
# /sbin/usplash_write "TEXT-URGENT and press ENTER to continue"
# fi
# read x < /dev/console
2nd Step (optional): To prevent the system to replace /etc/init.d/casper while upgrading the deb package "casper" from BT4 repositories, you may introduce a local diversion utilizing dpkg-divert
Code:
dpkg-divert /etc/init.d/casper