diff options
author | Daniel Baumann <daniel@debian.org> | 2012-12-17 00:10:31 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-12-17 00:10:39 +0100 |
commit | 50c2839b1b341cc6f1526ee3c467597bb2cc8166 (patch) | |
tree | 9752d9b75565bde262e9c0dcb681b9d9516fc33f | |
parent | 995031ed72ff79e213576be8ad363194ae006e00 (diff) | |
download | vyos-live-build-50c2839b1b341cc6f1526ee3c467597bb2cc8166.tar.gz vyos-live-build-50c2839b1b341cc6f1526ee3c467597bb2cc8166.zip |
Adding default hook to use mesa glx renderer.
-rwxr-xr-x | functions/defaults.sh | 6 | ||||
-rwxr-xr-x | share/hooks/0180-update-glx-alternative.chroot | 9 |
2 files changed, 13 insertions, 2 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh index 5ca0d8ae8..165506fa8 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -637,7 +637,8 @@ Set_defaults () remove-backup-files \ remove-temporary-files \ remove-log-files \ - update-nvidia-alternative}" + update-nvidia-alternative \ + update-glx-alternative}" ;; kubuntu) @@ -656,7 +657,8 @@ Set_defaults () remove-backup-files \ remove-temporary-files \ remove-log-files \ - update-nvidia-alternative}" + update-nvidia-alternative \ + update-glx-alternative}" ;; esac diff --git a/share/hooks/0180-update-glx-alternative.chroot b/share/hooks/0180-update-glx-alternative.chroot new file mode 100755 index 000000000..8c36c43f9 --- /dev/null +++ b/share/hooks/0180-update-glx-alternative.chroot @@ -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 |