eject -p -m /live/image >/dev/null 2>&1
fi
+ stty sane < /dev/console
+
# XXX - i18n
- echo "Please remove the disc and close the tray (if any) then press ENTER: "
+ 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)"
+casper (1.107) gutsy; urgency=low
+
+ * Fix gconf keys for suspend and hibernate (thanks, Oliver Grawert;
+ LP: #144790).
+ * Enable suspend again since as far as I can see we no longer need to
+ probe DMI while figuring out whether to enable it (see #61535).
+ * Add a 'textonly' boot option to disable X (LP: #65818).
+ * Write the please-remove-CD message to /dev/console so that it works even
+ if usplash isn't running, and make sure to set /dev/console into a sane
+ state so that pressing Enter doesn't just result in ^M being displayed.
+
+ -- Colin Watson <cjwatson@ubuntu.com> Tue, 02 Oct 2007 15:12:57 +0100
+
casper (1.106) gutsy; urgency=low
* Support preseed/early_command; code supplied here will be run using 'sh
lead to problems by applications like "mono" which store binary paths on
installation.
+ textonly
+
+Start up to text-mode shell prompts, disabling the graphical user interface.
+
timezone=**TIMEZONE**::
By default, timezone is set to UTC. Using the timezone parameter, you can set it
export SHOWMOUNTS
;;
+ textonly)
+ TEXTONLY="Yes"
+ export TEXTONLY
+ ;;
+
timezone=*)
TIMEZONE="${ARGUMENT#timezone=}"
export TIMEZONE
if [ "${TERM_TYPE}" = "serial" ]
then
# Don't bother trying to configure or start X on a serial console
- rm -f /etc/rc?.d/S??[gxk]dm
+ rm -f /root/etc/rc?.d/S??[gkx]dm
+ exit 0
+fi
+
+if [ -n "${TEXTONLY}" ]
+then
exit 0
fi
case ${x} in
noninteractive)
sed -i -e "s|^exec.*|exec /usr/bin/ubiquity noninteractive </dev/tty1 > /dev/tty1 2>\&1|" /root/etc/event.d/tty1
- rm -f /root/etc/rc?.d/[SK]??gdm
- rm -f /root/etc/rc?.d/[SK]??kdm
+ rm -f /root/etc/rc?.d/[SK]??[gkx]dm
+ ;;
+
+ textonly)
+ rm -f /root/etc/rc?.d/[SK]??[gkx]dm
;;
esac
done
if [ -n "${gpm_version}" ]
then
#live-reconfigure /root gnome-power-manager
+ # Gnome < 2.20
chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/gnome-power-manager/can_hibernate false
- chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/gnome-power-manager/can_suspend false
+ # Gnome >= 2.20
+ chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/gnome-power-manager/general/can_hibernate false
fi
if [ -d /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config ]
then
- echo "disableSuspend=1" >> /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config/power-managerrc
echo "disableHibernate=1" >> /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config/power-managerrc
fi