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:
7e65ff0
)
postinstall script: Only grab first IP from "hostname -I".
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 7 Feb 2016 22:01:37 +0000
(23:01 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 7 Feb 2016 22:01:37 +0000
(23:01 +0100)
jessie_postinstall.sh
patch
|
blob
|
history
diff --git
a/jessie_postinstall.sh
b/jessie_postinstall.sh
index a14dcce8b6623811f273249e158c658e1dcf8b3f..587f30b35dbc3214b34b7d411a7eec49de051211 100755
(executable)
--- a/
jessie_postinstall.sh
+++ b/
jessie_postinstall.sh
@@
-57,7
+57,7
@@
echo $hostname > /etc/hostname
hostname $hostname
if [ "$1" = "server" ]; then
echo '127.0.0.1 localhost' > /etc/hosts
- ip=`hostname -I`
+ ip=`hostname -I
| cut -d " " -f 1
`
echo "$ip $2 $hostname" >> /etc/hosts
# Call dhclient on startup.