Added update-alternatives-set-dri moved from xorg-server package
This commit is contained in:
parent
29e5202c60
commit
df1571b7a6
1
Makefile
1
Makefile
@ -105,6 +105,7 @@ install-scripts: $(pck_scripts)
|
|||||||
@echo "installing logrotate file...";\
|
@echo "installing logrotate file...";\
|
||||||
$(INSTALL_DIR) $(DESTDIR)$(sbin)
|
$(INSTALL_DIR) $(DESTDIR)$(sbin)
|
||||||
$(INSTALL_SCRIPT) $^ $(DESTDIR)$(sbin)
|
$(INSTALL_SCRIPT) $^ $(DESTDIR)$(sbin)
|
||||||
|
$(INSTALL_SCRIPT) scripts/update-alternatives-set-dri $(DESTDIR)$(sbin)
|
||||||
|
|
||||||
install-programs: install-plugins install-scripts install-defs
|
install-programs: install-plugins install-scripts install-defs
|
||||||
@echo "installing $(PACKAGE)..."
|
@echo "installing $(PACKAGE)..."
|
||||||
|
@ -67,7 +67,7 @@ elif [ "$VIDEODRIVER" = "fglrx" -o "$VIDEODRIVER" = "avivo" ]; then
|
|||||||
else
|
else
|
||||||
# set default alternatives
|
# set default alternatives
|
||||||
logmsg "$me" "Setting alternatives for dri video drivers"
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,8 +40,8 @@ esac
|
|||||||
|
|
||||||
if [ -x /usr/sbin/update-alternatives-set-nvidia$ALT_SUFFIX ]; then
|
if [ -x /usr/sbin/update-alternatives-set-nvidia$ALT_SUFFIX ]; then
|
||||||
/usr/sbin/update-alternatives-set-nvidia$ALT_SUFFIX
|
/usr/sbin/update-alternatives-set-nvidia$ALT_SUFFIX
|
||||||
elif [ -x /usr/sbin/update-alternatives-set-dri ]; then
|
elif [ -x /sbin/update-alternatives-set-dri ]; then
|
||||||
/usr/sbin/update-alternatives-set-dri
|
/sbin/update-alternatives-set-dri
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
4
scripts/update-alternatives-set-dri
Executable file
4
scripts/update-alternatives-set-dri
Executable 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
|
Loading…
Reference in New Issue
Block a user