Adding default hook to use mesa glx renderer.

This commit is contained in:
Daniel Baumann 2012-12-17 00:10:31 +01:00
parent 1b87a1ba1a
commit 6ca1504312
2 changed files with 13 additions and 2 deletions

View File

@ -616,7 +616,8 @@ Set_defaults ()
remove-backup-files \
remove-temporary-files \
remove-log-files \
update-nvidia-alternative}"
update-nvidia-alternative \
update-glx-alternative}"
;;
kubuntu)
@ -635,7 +636,8 @@ Set_defaults ()
remove-backup-files \
remove-temporary-files \
remove-log-files \
update-nvidia-alternative}"
update-nvidia-alternative \
update-glx-alternative}"
;;
esac

View File

@ -0,0 +1,9 @@
#!/bin/sh
set -e
# Use mesa renderer by default
if [ -e /etc/alternatives/glx ]
then
update-alternatives --quiet --set glx /usr/lib/mesa-diverted
fi