home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
338f55b
)
Add hostnames to thinkpads.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 12 Dec 2015 23:35:35 +0000
(
00:35
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 12 Dec 2015 23:35:35 +0000
(
00:35
+0100)
jessie_postinstall.sh
patch
|
blob
|
history
diff --git
a/jessie_postinstall.sh
b/jessie_postinstall.sh
index 7aafe79cd2f273f8adf8e1d9979de71470eb636f..02e0b3ac20f07b37cc2df3fa8a5177f4e5ea3ac1 100755
(executable)
--- 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.