better qxl check

This commit is contained in:
Tobias Powalowski 2023-07-12 19:34:59 +02:00
parent 02b51a027f
commit 9f7db9ccc6

View file

@ -293,9 +293,7 @@ _prepare_graphic() {
pacman -Syu ${_IGNORE} --noconfirm &>/dev/null || exit 1
[[ ! -e "/.full_system" ]] && _cleanup_install
# check for qxl module
if grep -q qxl /proc/modules; then
_GRAPHIC="${_GRAPHIC} xf86-video-qxl"
fi
grep -q qxl /proc/modules && grep -q xorg ${_GRAPHIC} && _GRAPHIC="${_GRAPHIC} xf86-video-qxl"
echo "Running pacman to install packages: ${_GRAPHIC}..."
for i in ${_GRAPHIC}; do
#shellcheck disable=SC2086