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 5ce99c5..8b91d74 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