diff options
author | Joerg Schirottke <master@kanotix.com> | 2013-03-05 16:30:45 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2013-05-03 16:48:10 +0200 |
commit | cbcf64dcef952f96eb37dd9d1b8331f7172cc123 (patch) | |
tree | 20f56f6baf8db09dcd10d9563cbdf105d8843aef /config/chroot_local-hooks | |
parent | 70a9ce8a988b617175b9a86d6cd24172c5d662ce (diff) | |
download | kanotix-cbcf64dcef952f96eb37dd9d1b8331f7172cc123.zip kanotix-cbcf64dcef952f96eb37dd9d1b8331f7172cc123.tar.gz |
gfxdetect, mesa backport and steam support
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-x | config/chroot_local-hooks/gfxdetect | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/gfxdetect b/config/chroot_local-hooks/gfxdetect new file mode 100755 index 0000000..01b139c --- /dev/null +++ b/config/chroot_local-hooks/gfxdetect @@ -0,0 +1,17 @@ +#!/bin/sh +if [ -d /usr/lib/mesa-diverted ]; then + update-alternatives --set glx /usr/lib/mesa-diverted +fi + +if [ -f /etc/kde4/kdm/kdmrc ]; then + sed -i 's|\(ServerArgsLocal=-br -nolisten tcp\).*|\1 -dpi 96|' /etc/kde4/kdm/kdmrc +fi + +if [ -f /usr/share/initramfs-tools/scripts/init-bottom/01gfxdetect ]; then + if [ -f /etc/alternatives/glx--fglrx-blacklists-radeon.conf ]; then + sed -i 's/.*\(blacklist\)/#\1/' /etc/alternatives/glx--fglrx-blacklists-radeon.conf + fi + if [ -f /etc/modprobe.d/nvidia-kernel-common.conf ]; then + sed -i 's/.*\(blacklist\)/#\1/' /etc/modprobe.d/nvidia-kernel-common.conf + fi +fi |