xorg: fix configure on multi-gpu setups.

no more than one xorg-configure@ should be allowed. so pick the first card

this hardly depends on current xorg udev rules (see commit a4b62c0017)
or on all drm drivers built as modules.
This commit is contained in:
Stefan Saraev 2013-10-09 19:54:58 +03:00
parent 3c5ba3ac25
commit 2dc27d4b6c

View File

@ -24,11 +24,18 @@
# creating needed directories and symlinks
################################################################################
logger -t Xorg "creating needed directories and symlinks for driver: "$1""
mkdir -p /var/lib
mkdir -p /var/run
# HACK. we have xorg-configure@%. so nice race
# can happen on multi-gpu setups
if [ -e /var/run/xorg-configure.done ] ; then
exit 0
fi
touch /var/run/xorg-configure.done
logger -t Xorg "creating needed directories and symlinks for driver: "$1""
##############################################################################
# setup xorg.conf paths
##############################################################################