X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;ds=sidebyside;f=jessie_postinstall.sh;h=f908cafc02848c81141c6d7b4b8e0991cdc2994a;hb=de221b1006fb1541fae4e8f9b896f992ef9145f8;hp=7aafe79cd2f273f8adf8e1d9979de71470eb636f;hpb=6a0395b724c4e27b2ac45da6c030ca9ec0635828;p=config diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh index 7aafe79..f908caf 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 +su plom -c '/home/plom/config/bin/symlink.sh '$1 $2 # Set up editor. mkdir -p .vimbackups