projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf4626d
)
Write MAC address to a file at successful netroot mount, NetworkManager wants this.
author
Warren Togami
<wtogami@redhat.com>
Wed, 10 Jun 2009 15:12:14 +0000
(11:12 -0400)
committer
Warren Togami
<wtogami@redhat.com>
Wed, 10 Jun 2009 15:12:14 +0000
(11:12 -0400)
modules.d/40network/netroot
patch
|
blob
|
history
diff --git
a/modules.d/40network/netroot
b/modules.d/40network/netroot
index
5ce99c5
..
8b91d74
100755
(executable)
--- 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