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,7 +22,11 @@ run_hook () {
break
fi
done
ip="${ip}::${bootif_dev}"
if [[ "${ip}" == "dhcp" ]]; then
ip=":::::${bootif_dev}:dhcp"
else
ip="${ip}::${bootif_dev}"
fi
fi
# setup network and save some values