mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
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:
parent
3c5ba3ac25
commit
2dc27d4b6c
@ -24,10 +24,17 @@
|
|||||||
# creating needed directories and symlinks
|
# creating needed directories and symlinks
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
logger -t Xorg "creating needed directories and symlinks for driver: "$1""
|
mkdir -p /var/lib
|
||||||
|
mkdir -p /var/run
|
||||||
|
|
||||||
mkdir -p /var/lib
|
# HACK. we have xorg-configure@%. so nice race
|
||||||
mkdir -p /var/run
|
# 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
|
# setup xorg.conf paths
|
||||||
|
Loading…
x
Reference in New Issue
Block a user