diff options
author | Simon Rettberg | 2014-04-01 15:34:00 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-04-01 15:34:00 +0200 |
commit | 2ffaf2a433925455ab16e5664b7103b94f3dee24 (patch) | |
tree | 3703a7b1996314a88ac0d847a7beb1bceaca05e3 /remote/rootfs/rootfs-stage31/data/inc/drm.functions | |
parent | sdfoighsdihoi (diff) | |
download | tm-scripts-2ffaf2a433925455ab16e5664b7103b94f3dee24.tar.gz tm-scripts-2ffaf2a433925455ab16e5664b7103b94f3dee24.tar.xz tm-scripts-2ffaf2a433925455ab16e5664b7103b94f3dee24.zip |
[stage31] Support for KCL-switches nvidia and amd, which unconditionally load proprietary gfx drivers for testing
Diffstat (limited to 'remote/rootfs/rootfs-stage31/data/inc/drm.functions')
-rw-r--r-- | remote/rootfs/rootfs-stage31/data/inc/drm.functions | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/remote/rootfs/rootfs-stage31/data/inc/drm.functions b/remote/rootfs/rootfs-stage31/data/inc/drm.functions index 20083724..c3b7b419 100644 --- a/remote/rootfs/rootfs-stage31/data/inc/drm.functions +++ b/remote/rootfs/rootfs-stage31/data/inc/drm.functions @@ -36,7 +36,16 @@ load_gfx () { setup_gfx () { local KERN RETVAL CARD CARDS SUCCESS FILES DRM - # check which driver to load + # check if forced by KCL + if [ "x$GFX" == "xnvidia" ]; then + load_gfx @nvidia + return + fi + if [ "x$GFX" == "xamd" ]; then + load_gfx @amd + return + fi + # not forced - check which driver to load CARDS=$(lspci | grep 'Class 0300' | awk '{print $4}') if [ -e "/drm.cfg" ] && [ -n "$CARDS" ]; then SUCCESS="yes" |