Using automatic driver selection based on pci-ids in xserver-xorg script only when...
authorDaniel Baumann <daniel@debian.org>
Thu, 13 Dec 2012 07:39:24 +0000 (08:39 +0100)
committerDaniel Baumann <daniel@debian.org>
Thu, 13 Dec 2012 07:39:32 +0000 (08:39 +0100)
scripts/config/1150-xserver-xorg

index ffa366a..609bf55 100755 (executable)
@@ -90,7 +90,7 @@ Configure_xserver_xorg ()
                esac
        fi
 
-       if [ -z "${LIVE_XORG_DRIVER}" ]
+       if [ -z "${LIVE_XORG_DRIVER}" ] && [ -e /usr/bin/lspci ]
        then
                # pci-id of the first graphic card
                _DEVICE="$(lspci -mn | awk '/0300/ { print $3$4 }' | sed -e 's|"||g' | tr [a-z] [A-Z] | head -n1)"