From: Harald Hoyer Date: Tue, 25 Aug 2015 09:30:00 +0000 (+0200) Subject: network: also mark interfaces up with their MAC X-Git-Tag: 044~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26fbe97bbe3079d7dc63b19fb3a0728570da7628;p=thirdparty%2Fdracut.git network: also mark interfaces up with their MAC (cherry picked from commit 53537f4d23091457f644ab8b3edf09c2dca4351c) --- diff --git a/modules.d/40network/dhclient-script.sh b/modules.d/40network/dhclient-script.sh index 4e2090dba..f55611dc8 100755 --- a/modules.d/40network/dhclient-script.sh +++ b/modules.d/40network/dhclient-script.sh @@ -139,6 +139,10 @@ case $reason in echo "[ -f /tmp/net.$netif.did-setup ]" > $hookdir/initqueue/finished/dhclient-$netif.sh >/tmp/net.$netif.up + if [ -e /sys/class/net/${netif}/address ]; then + > /tmp/net.$(cat /sys/class/net/${netif}/address).up + fi + ;; RENEW|REBIND) @@ -171,6 +175,9 @@ case $reason in echo "[ -f /tmp/net.$netif.did-setup ]" > $hookdir/initqueue/finished/dhclient-$netif.sh >/tmp/net.$netif.up + if [ -e /sys/class/net/${netif}/address ]; then + > /tmp/net.$(cat /sys/class/net/${netif}/address).up + fi ;; RENEW6|REBIND6) diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index 647c85623..dd47e4bd6 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -377,6 +377,10 @@ for p in $(getargs ip=); do > /tmp/net.${netif}.up + if [ -e /sys/class/net/${netif}/address ]; then + > /tmp/net.$(cat /sys/class/net/${netif}/address).up + fi + case $autoconf in dhcp|on|any|dhcp6) ;;