diff options
author | Harald Hoyer <harald@redhat.com> | 2013-07-29 16:06:28 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-07-29 16:06:28 +0200 |
commit | c5f8b69ad7847734596124679a8fd63b61819b81 (patch) | |
tree | debc300277a37030fd0dd605f9aa1d88400f054f /modules.d | |
parent | 2beee35d5eab84a1951bf684c35397726bd5e3bc (diff) | |
download | dracut-c5f8b69ad7847734596124679a8fd63b61819b81.tar.gz dracut-c5f8b69ad7847734596124679a8fd63b61819b81.tar.bz2 dracut-c5f8b69ad7847734596124679a8fd63b61819b81.zip |
network:ifup handle bootif style interfaces
e.g. ip=77-77-6f-6f-64-73:dhcp
Diffstat (limited to 'modules.d')
-rwxr-xr-x | modules.d/40network/ifup.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index 36c6b086..32f0ff23 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' ] && \ |