Fix xdriver= passing. Patch from Adam Williamson <awilliam@redhat.com>

This commit is contained in:
kevin 2010-08-12 09:43:00 -06:00
parent 6e1f238145
commit b500cb3bb9
2 changed files with 14 additions and 4 deletions

View File

@ -275,7 +275,7 @@ for o in \`cat /proc/cmdline\` ; do
ks="--kickstart=\${o#ks=}" ks="--kickstart=\${o#ks=}"
;; ;;
xdriver=*) xdriver=*)
xdriver="--set-driver=\${o#xdriver=}" xdriver="\${o#xdriver=}"
;; ;;
esac esac
done done
@ -348,7 +348,12 @@ fi
# configure X, allowing user to override xdriver # configure X, allowing user to override xdriver
if [ -n "\$xdriver" ]; then if [ -n "\$xdriver" ]; then
exists system-config-display --noui --reconfig --set-depth=24 \$xdriver cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE
Section "Device"
Identifier "Videocard0"
Driver "\$xdriver"
EndSection
FOE
fi fi
EOF EOF

View File

@ -342,7 +342,7 @@ for o in \`cat /proc/cmdline\` ; do
ks="\${o#ks=}" ks="\${o#ks=}"
;; ;;
xdriver=*) xdriver=*)
xdriver="--set-driver=\${o#xdriver=}" xdriver="\${o#xdriver=}"
;; ;;
esac esac
done done
@ -359,7 +359,12 @@ fi
# configure X, allowing user to override xdriver # configure X, allowing user to override xdriver
if [ -n "\$xdriver" ]; then if [ -n "\$xdriver" ]; then
exists system-config-display --noui --reconfig --set-depth=24 \$xdriver cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE
Section "Device"
Identifier "Videocard0"
Driver "\$xdriver"
EndSection
FOE
fi fi
EOF EOF