network:ifup handle bootif style interfaces

e.g. ip=77-77-6f-6f-64-73:dhcp
master
Harald Hoyer 2013-07-29 16:06:28 +02:00
parent 2beee35d5e
commit c5f8b69ad7
1 changed files with 11 additions and 0 deletions

View File

@ -287,6 +287,17 @@ for p in $(getargs ip=); do
# skip ibft
[ "$autoconf" = "ibft" ] && continue

case "$dev" in
??:??:??:??:??:??) # MAC address
_dev=$(iface_for_mac $dev)
[ -n "$_dev" ] && dev="$_dev"
;;
??-??-??-??-??-??) # MAC address in BOOTIF form
_dev=$(iface_for_mac $(fix_bootif $dev))
[ -n "$_dev" ] && dev="$_dev"
;;
esac

# If this option isn't directed at our interface, skip it
[ -n "$dev" ] && [ "$dev" != "$netif" ] && \
[ "$use_bridge" != 'true' ] && \