diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-10-04 08:43:54 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:05 +0100 |
| commit | aaef53af49f57c7feccb7ed2eb4297e730d0e7a6 (patch) | |
| tree | 128582e574d2a8e580cc424afd1179ea46b14b1f /scripts | |
| parent | 7a89bfb777121ee55d870ffe605c6f553d26a7c9 (diff) | |
| download | live-boot-aaef53af49f57c7feccb7ed2eb4297e730d0e7a6.tar.gz live-boot-aaef53af49f57c7feccb7ed2eb4297e730d0e7a6.zip | |
Merging casper 1.107.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live | 5 | ||||
| -rwxr-xr-x | scripts/live-bottom/20xconfig | 7 | ||||
| -rwxr-xr-x | scripts/live-bottom/25configure_init | 7 | ||||
| -rwxr-xr-x | scripts/live-bottom/32disable_hibernation | 5 |
4 files changed, 19 insertions, 5 deletions
diff --git a/scripts/live b/scripts/live index 43d3dde..b1157c5 100755 --- a/scripts/live +++ b/scripts/live @@ -336,6 +336,11 @@ Arguments () export SHOWMOUNTS ;; + textonly) + TEXTONLY="Yes" + export TEXTONLY + ;; + timezone=*) TIMEZONE="${ARGUMENT#timezone=}" export TIMEZONE diff --git a/scripts/live-bottom/20xconfig b/scripts/live-bottom/20xconfig index 8d315a5..779a1c2 100755 --- a/scripts/live-bottom/20xconfig +++ b/scripts/live-bottom/20xconfig @@ -34,7 +34,12 @@ log_begin_msg "Configuring X..." 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 diff --git a/scripts/live-bottom/25configure_init b/scripts/live-bottom/25configure_init index b2a191c..bec5608 100755 --- a/scripts/live-bottom/25configure_init +++ b/scripts/live-bottom/25configure_init @@ -89,8 +89,11 @@ then 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 diff --git a/scripts/live-bottom/32disable_hibernation b/scripts/live-bottom/32disable_hibernation index 708db5c..f77c668 100755 --- a/scripts/live-bottom/32disable_hibernation +++ b/scripts/live-bottom/32disable_hibernation @@ -36,13 +36,14 @@ gpm_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gnom 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 |
