From: Christian Heller Date: Sat, 12 Dec 2015 23:35:35 +0000 (+0100) Subject: Add hostnames to thinkpads. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/tasks?a=commitdiff_plain;h=cd3235f64ff3e298ba3f69cde18e25d10aef2027;p=config Add hostnames to thinkpads. --- 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.