X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F20xconfig;h=2a24ab5f1be0eb14a0a4d8a3fa2c0662c6e7e7da;hb=df79347407d7143a78490166decd11fdd109e75c;hp=1105e4a2b878e7b894cf82843d32052e505dfe16;hpb=0a1b827c113b85f48bcd58e64ccd94d094b9bd8a;p=live-boot-grml.git diff --git a/scripts/live-bottom/20xconfig b/scripts/live-bottom/20xconfig index 1105e4a..2a24ab5 100755 --- a/scripts/live-bottom/20xconfig +++ b/scripts/live-bottom/20xconfig @@ -20,16 +20,27 @@ esac # live-initramfs header +if [ -n "${NOXAUTOCONFIG}" ] +then + exit 0 +fi + . /scripts/live-functions -log_begin_msg "Configuring X..." +log_begin_msg "Configuring X" # live-initramfs script -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 - exit 0 +if [ "${TERM_TYPE}" = "serial" ] +then + # Don't bother trying to configure or start X on a serial console + rm -f /root/etc/rc?.d/S??[gkx]dm + exit 0 +fi + +if [ -n "${TEXTONLY}" ] +then + exit 0 fi locale=en_US.UTF-8 @@ -38,37 +49,36 @@ mount -n -o bind /sys /root/sys mount -n -o bind /proc /root/proc mount -n -o bind /dev /root/dev -if [ -n "${XDEBCONF}" -a -x /root/usr/sbin/xdebconfigurator ]; then - # xdebconfigurator - chroot /root /usr/sbin/xdebconfigurator +if [ -n "${XDEBCONF}" -a -x /root/usr/sbin/xdebconfigurator ] +then + # xdebconfigurator + chroot /root /usr/sbin/xdebconfigurator fi -if [ "${BUILD_SYSTEM}" = "Ubuntu" ]; then - chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null < /dev/null < /dev/null << EOF set xserver-xorg/config/inputdevice/keyboard/layout ${kbd} ${setvariant} ${setmodel} ${setoptions} EOF -fi -DEBUG_XORG_PACKAGE=1 DEBUG_XORG_DEBCONF=1 live-reconfigure /root xserver-xorg +DEBUG_XORG_PACKAGE=1 DEBUG_XORG_DEBCONF=1 live-reconfigure /root xserver-xorg 2>&1 \ + grep -v "overwriting possibly-customised configuration file" umount /root/sys umount /root/proc umount /root/dev