diff options
Diffstat (limited to 'scripts/live-bottom')
| -rwxr-xr-x | scripts/live-bottom/21xdriver | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/scripts/live-bottom/21xdriver b/scripts/live-bottom/21xdriver new file mode 100755 index 0000000..c96f0ea --- /dev/null +++ b/scripts/live-bottom/21xdriver @@ -0,0 +1,51 @@ +#!/bin/sh + +#set -e + +# initramfs-tools header + +PREREQ="" + +prereqs() +{ + echo "${PREREQ}" +} + +case "${1}" in + prereqs) + prereqs + exit 0 + ;; +esac + +# live-initramfs header + +if [ -n "${NOXAUTOCONFIG}" ] +then + exit 0 +fi + +. /scripts/live-functions + +log_begin_msg "Configuring X kludges..." + +# live-initramfs script + +if [ -n "$XDRIVER" ] +then + mount -n -o bind /sys /root/sys + mount -n -o bind /proc /root/proc + mount -n -o bind /dev /root/dev + +chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF +set xserver-xorg/autodetect_video_card false +set xserver-xorg/config/device/driver ${XDRIVER} +EOF + + chroot /root dexconf + + umount /root/sys + umount /root/proc + umount /root/dev +fi + |
