mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
config/graphic: remove duplicate entries in XORG_DRIVERS variable
This commit is contained in:
parent
32a7930b9a
commit
e23f0cb5f2
@ -100,4 +100,7 @@ get_graphicdrivers() {
|
|||||||
# remove leading comma if present
|
# remove leading comma if present
|
||||||
[[ $GALLIUM_DRIVERS =~ ^, ]] && GALLIUM_DRIVERS="${GALLIUM_DRIVERS:1}"
|
[[ $GALLIUM_DRIVERS =~ ^, ]] && GALLIUM_DRIVERS="${GALLIUM_DRIVERS:1}"
|
||||||
[[ $DRI_DRIVERS =~ ^, ]] && DRI_DRIVERS="${DRI_DRIVERS:1}"
|
[[ $DRI_DRIVERS =~ ^, ]] && DRI_DRIVERS="${DRI_DRIVERS:1}"
|
||||||
|
|
||||||
|
# remove duplicate entries
|
||||||
|
XORG_DRIVERS="$(echo $XORG_DRIVERS | xargs -n1 | sort -u | xargs)"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user