X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=jessie_postinstall.sh;h=0884d132be63bef8fa155eaf86312da57cc5f2c9;hb=79dc5d5f6bb316807da0604147f89ff410ab5b5c;hp=f073da1c21f3e590c3ab1435a6db04372ed4ac1e;hpb=987cea18cb9c42a955c69525c518979988ac8ce0;p=config
diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh
index f073da1..0884d13 100755
--- a/jessie_postinstall.sh
+++ b/jessie_postinstall.sh
@@ -55,6 +55,12 @@ ExecStart=/sbin/dhclient eth0
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.
@@ -136,7 +142,7 @@ config/bin/symlink.sh
useradd -m -s /bin/bash plom
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
+su plom -c '/home/plom/config/bin/symlink.sh '$1' '$2
# Set up editor.
mkdir -p .vimbackups