From 7e65ff0da2133434d1bf0bcec8b5d496b0e1cc64 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 7 Feb 2016 22:18:29 +0100 Subject: [PATCH] Allow user sudo on thinkpads. --- jessie_postinstall.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh index 08b34ab..a14dcce 100755 --- a/jessie_postinstall.sh +++ b/jessie_postinstall.sh @@ -155,6 +155,12 @@ rm -rf /home/plom/config su - plom -c 'git clone http://github.com/plomlompom/config /home/plom/config' su plom -c '/home/plom/config/bin/symlink.sh '$1' '$2 +# Allow user to sudo. +if [ "$1" = "thinkpad" ]; then + apt-get -y install sudo + adduser plom sudo +fi + # Set up editor. mkdir -p .vimbackups su plom -c 'mkdir -p /home/plom/.vimbackups/' -- 2.30.2