Added update-alternatives-set-dri moved from xorg-server package

This commit is contained in:
Silvan Calarco 2014-12-04 16:29:01 +01:00
parent 29e5202c60
commit df1571b7a6
4 changed files with 8 additions and 3 deletions

View File

@ -105,6 +105,7 @@ install-scripts: $(pck_scripts)
@echo "installing logrotate file...";\
$(INSTALL_DIR) $(DESTDIR)$(sbin)
$(INSTALL_SCRIPT) $^ $(DESTDIR)$(sbin)
$(INSTALL_SCRIPT) scripts/update-alternatives-set-dri $(DESTDIR)$(sbin)
install-programs: install-plugins install-scripts install-defs
@echo "installing $(PACKAGE)..."

View File

@ -67,7 +67,7 @@ elif [ "$VIDEODRIVER" = "fglrx" -o "$VIDEODRIVER" = "avivo" ]; then
else
# set default alternatives
logmsg "$me" "Setting alternatives for dri video drivers"
[ -x /usr/sbin/update-alternatives-set-dri ] && /usr/sbin/update-alternatives-set-dri
[ -x /sbin/update-alternatives-set-dri ] && /sbin/update-alternatives-set-dri
fi
}

View File

@ -40,8 +40,8 @@ esac
if [ -x /usr/sbin/update-alternatives-set-nvidia$ALT_SUFFIX ]; then
/usr/sbin/update-alternatives-set-nvidia$ALT_SUFFIX
elif [ -x /usr/sbin/update-alternatives-set-dri ]; then
/usr/sbin/update-alternatives-set-dri
elif [ -x /sbin/update-alternatives-set-dri ]; then
/sbin/update-alternatives-set-dri
else
exit 1
fi

View File

@ -0,0 +1,4 @@
#!/bin/bash
# Set DRI alternatives for Mesa/Xorg
update-alternatives --set libglx.so /usr/lib64/xorg/modules/extensions/dri/libglx.so
update-alternatives --set libGL.so.1 /usr/lib64/mesa/libGL.so.1.2