From: Warren Togami Date: Wed, 10 Jun 2009 15:12:14 +0000 (-0400) Subject: Write MAC address to a file at successful netroot mount, NetworkManager wants this. X-Git-Tag: 0.1~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2287b3626513a0d3e24b3680bb3192fe27c6c7f;p=thirdparty%2Fdracut.git Write MAC address to a file at successful netroot mount, NetworkManager wants this. --- diff --git a/modules.d/40network/netroot b/modules.d/40network/netroot index 5ce99c552..8b91d74df 100755 --- a/modules.d/40network/netroot +++ b/modules.d/40network/netroot @@ -49,6 +49,7 @@ export NEWROOT if $handler $netif $root; then [ -f /tmp/dhclient.$netif.lease ] && cp /tmp/dhclient.$netif.lease /tmp/net.$netif.lease [ -f /tmp/dhclient.$netif.dhcpopts ] && cp /tmp/dhclient.$netif.dhcpopts /tmp/net.$netif.dhcpopts + cat /sys/class/net/eth0/address > /tmp/net.$netif.hwaddr >/tmp/netroot.done fi exit 0