Commit 3fec5012 authored by David Thurstenson's avatar David Thurstenson Committed by Gerardo Exequiel Pozzi
Browse files

Handle case where ip=dhcp



Signed-off-by: David Thurstenson's avatarDavid Thurstenson <thurstylark@gmail.com>
parent ae854ed7
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment