From efd2d20f9eab0149cd3208d04f1aabe24e1e3aec Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 7 Feb 2016 23:01:37 +0100 Subject: [PATCH] postinstall script: Only grab first IP from "hostname -I". --- jessie_postinstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.30.2