]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Write MAC address to a file at successful netroot mount, NetworkManager wants this.
authorWarren Togami <wtogami@redhat.com>
Wed, 10 Jun 2009 15:12:14 +0000 (11:12 -0400)
committerWarren Togami <wtogami@redhat.com>
Wed, 10 Jun 2009 15:12:14 +0000 (11:12 -0400)
modules.d/40network/netroot

index 5ce99c552c326ea72dda0ab9764c9e9417275903..8b91d74dff1692bfa6b67bd1be797ce37bfa7958 100755 (executable)
@@ -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