X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Flive-bottom%2F20xconfig;h=1105e4a2b878e7b894cf82843d32052e505dfe16;hb=526a7c2e15a71dbaef918007637973c3b61986fa;hp=93c872208f12e026fce5ac5b101d840812e8ba09;hpb=d70b77f919f85511936645abb95d710b80c10c74;p=live-boot-grml.git diff --git a/scripts/live-bottom/20xconfig b/scripts/live-bottom/20xconfig index 93c8722..1105e4a 100755 --- a/scripts/live-bottom/20xconfig +++ b/scripts/live-bottom/20xconfig @@ -1,24 +1,30 @@ #!/bin/sh -PREREQ="" -DESCRIPTION="Configuring X..." +#set -e -. /scripts/live-functions +# initramfs-tools header + +PREREQ="" prereqs() { - echo "$PREREQ" + echo "${PREREQ}" } -case $1 in -# get pre-requisites -prereqs) - prereqs - exit 0 - ;; +case "${1}" in + prereqs) + prereqs + exit 0 + ;; esac -log_begin_msg "$DESCRIPTION" +# live-initramfs header + +. /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 @@ -28,17 +34,6 @@ fi locale=en_US.UTF-8 -for x in $(cat /proc/cmdline); do - case $x in - debian-installer/locale=*) - locale=${x#debian-installer/locale=} - ;; - locale=*) - locale=${x#locale=} - ;; - esac -done - mount -n -o bind /sys /root/sys mount -n -o bind /proc /root/proc mount -n -o bind /dev /root/dev @@ -48,12 +43,32 @@ if [ -n "${XDEBCONF}" -a -x /root/usr/sbin/xdebconfigurator ]; then chroot /root /usr/sbin/xdebconfigurator fi -chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null < /dev/null < /dev/null <