X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=jessie_postinstall.sh;h=587f30b35dbc3214b34b7d411a7eec49de051211;hb=efd2d20f9eab0149cd3208d04f1aabe24e1e3aec;hp=a14dcce8b6623811f273249e158c658e1dcf8b3f;hpb=7e65ff0da2133434d1bf0bcec8b5d496b0e1cc64;p=config diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh index a14dcce..587f30b 100755 --- 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.