Handle case where ip=dhcp

Signed-off-by: David Thurstenson <thurstylark@gmail.com>
This commit is contained in:
David Thurstenson 2017-03-10 14:01:06 -06:00 committed by Gerardo Exequiel Pozzi
parent ae854ed712
commit 3fec501225

View File

@ -22,8 +22,12 @@ run_hook () {
break
fi
done
if [[ "${ip}" == "dhcp" ]]; then
ip=":::::${bootif_dev}:dhcp"
else
ip="${ip}::${bootif_dev}"
fi
fi
# setup network and save some values
if ! ipconfig -t 20 "ip=${ip}"; then