From cd3235f64ff3e298ba3f69cde18e25d10aef2027 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 13 Dec 2015 00:35:35 +0100 Subject: [PATCH] Add hostnames to thinkpads. --- jessie_postinstall.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh index 7aafe79..02e0b3a 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. -- 2.30.2