X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F20xconfig;h=8886af8228067bd2b0ff9f2a6763afb1d34798bf;hb=1b69d89f210c87efb582f51a4eec391515734e45;hp=161215b2139b75e5d0fcac19909e0a22b23e519d;hpb=ccea277caf476cdfef4c0f953df5a97062d8be42;p=live-boot-grml.git diff --git a/scripts/live-bottom/20xconfig b/scripts/live-bottom/20xconfig index 161215b..8886af8 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..." # 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,35 +49,33 @@ 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 umount /root/sys