Adding debian version 2.0~a1-1.
[debian-live-boot/hramrach.git] / scripts / live-bottom / 21xdriver
blob92bbd4f64db3acb03821c2d432d89e55189fc95f
1 #!/bin/sh
3 #set -e
5 # initramfs-tools header
7 PREREQ=""
9 prereqs()
11 echo "${PREREQ}"
14 case "${1}" in
15 prereqs)
16 prereqs
17 exit 0
19 esac
21 # live-boot header
23 if [ -n "${NOXAUTOCONFIG}" ] || [ ! -x /root/usr/bin/X ] || [ -z "${XDRIVER}" ]
24 then
25 exit 0
28 . /scripts/live-functions
30 log_begin_msg "Configuring X video driver"
32 # live-boot script
34 . /live.vars
36 mount -o bind /sys /root/sys
37 mount -o bind /proc /root/proc
38 mount -o bind /dev /root/dev
40 if [ "${XDRIVER}" != "dexconf" ]
41 then
43 chroot /root debconf-communicate -fnoninteractive live-boot > /dev/null << EOF
44 set xserver-xorg/autodetect_video_card false
45 set xserver-xorg/config/device/driver ${XDRIVER}
46 EOF
50 chroot /root dexconf
52 umount /root/sys
53 umount /root/proc
54 umount /root/dev
56 log_end_msg