if [ -z "${LIVE_XORG_DRIVER}" ]
then
+ # xorg-driver automatic override for fglrx
if echo "${_DEVICE}" | grep -qs '^1002'
then
- # xorg-driver automatic override for fglrx
if grep -qs "${_DEVICE}" /usr/share/fglrx/fglrx.ids
then
LIVE_XORG_DRIVER="fglrx"
fi
fi
+ # xorg-driver automatic override for nvidia
if echo "${_DEVICE}" | grep -qs -E '^(10DE|12D2)'
then
- # xorg-driver automatic override for nvidia
for _NVIDIA_IDS in /usr/lib/nvidia/current/nvidia.ids $(ls /usr/lib/nvidia/legacy-*/nvidia.ids | sort -V -r)
do
if [ -e "${_NVIDIA_IDS}" ]
if [ -e "/usr/share/live/config/xserver-xorg/${LIVE_XORG_DRIVER}.conf" ]
then
- # xorg-driver manual overrides
+ # xorg-driver manual override
cp "/usr/share/live/config/xserver-xorg/${LIVE_XORG_DRIVER}.conf" /etc/X11/xorg.conf.d/99-live.conf
else
+ # xorg-driver automatic override
+
cat > /etc/X11/xorg.conf.d/99-live.conf << EOF
Section "Device"
Identifier "Default screen"