From 6a0395b724c4e27b2ac45da6c030ca9ec0635828 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sat, 12 Dec 2015 23:24:22 +0100
Subject: [PATCH] Fix hardware acceleration in postinstall script.

---
 jessie_postinstall.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh
index fb4161f..7aafe79 100755
--- a/jessie_postinstall.sh
+++ b/jessie_postinstall.sh
@@ -212,12 +212,12 @@ elif [ "$1" = "thinkpad" ]; then
 
     # Set up OpenGL and hardware acceleration.
     if [ "$2" = "X200s" ]; then
-        apt-get -y install libgl1-mesa-dri
         apt-get -y install i965-va-driver
-        usermod -aG video plom
     elif [ "$2" = "T450s" ]; then
         apt-get -y -t jessie-backports install xserver-xorg-video-intel
     fi
+    apt-get -y install libgl1-mesa-dri
+    usermod -aG video plom
 
     # Install xrandr.
     apt-get -y install x11-xserver-utils
-- 
2.30.2