WantedBy=multi-user.target
EOF
systemctl enable /etc/systemd/system/dhclient.service
+elif [ "$1" = "thinkpad" ]; then
+ if [ "$2" = "X200s" ]; then
+ echo 'X200s' > /etc/hostname
+ elif [ "$2" = "T450s" ]; then
+ echo 'T450s' > /etc/hostname
+ fi
fi
# Package management config, system upgrade.
# 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