From: Harald Hoyer Date: Mon, 29 Jul 2013 14:06:28 +0000 (+0200) Subject: network:ifup handle bootif style interfaces X-Git-Tag: 031~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5f8b69ad7847734596124679a8fd63b61819b81;p=platform%2Fupstream%2Fdracut.git network:ifup handle bootif style interfaces e.g. ip=77-77-6f-6f-64-73:dhcp --- diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index 36c6b08..32f0ff2 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -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' ] && \