diff options
author | Harald Hoyer <harald@redhat.com> | 2012-04-04 14:47:29 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2012-04-05 13:25:41 +0200 |
commit | 990e945ffd4b505e2cada4a65c22c858d0874b9d (patch) | |
tree | 26d12e0c38de99cbfc0b65c80fe0151b1d481728 /modules.d/45ifcfg | |
parent | 8a5456e872f0081590ca7c4f29a739a1496b7933 (diff) | |
download | dracut-990e945ffd4b505e2cada4a65c22c858d0874b9d.tar.gz dracut-990e945ffd4b505e2cada4a65c22c858d0874b9d.tar.bz2 dracut-990e945ffd4b505e2cada4a65c22c858d0874b9d.zip |
add mtu and macaddr to ip=
Diffstat (limited to 'modules.d/45ifcfg')
-rwxr-xr-x | modules.d/45ifcfg/write-ifcfg.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh index fe986df4..c072a138 100755 --- a/modules.d/45ifcfg/write-ifcfg.sh +++ b/modules.d/45ifcfg/write-ifcfg.sh @@ -38,6 +38,8 @@ for netif in $IFACES ; do echo "ONBOOT=yes" echo "NETBOOT=yes" echo "UUID=$uuid" + [ -n "$macaddr" ] && echo "MACADDR=$macaddr" + [ -n "$mtu" ] && echo "MTU=$mtu" if [ -f /tmp/net.$netif.lease ]; then strstr "$ip" '*:*:*' && echo "DHCPV6C=yes" @@ -60,6 +62,7 @@ for netif in $IFACES ; do echo "HWADDR=$(cat /sys/class/net/$netif/address)" echo "TYPE=Ethernet" echo "NAME=\"Boot Disk\"" + [ -n "$mtu" ] && echo "MTU=$mtu" } >> /tmp/ifcfg/ifcfg-$netif fi |