summaryrefslogtreecommitdiff
path: root/modules.d/45ifcfg
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-04-04 14:47:29 +0200
committerHarald Hoyer <harald@redhat.com>2012-04-05 13:25:41 +0200
commit990e945ffd4b505e2cada4a65c22c858d0874b9d (patch)
tree26d12e0c38de99cbfc0b65c80fe0151b1d481728 /modules.d/45ifcfg
parent8a5456e872f0081590ca7c4f29a739a1496b7933 (diff)
downloaddracut-990e945ffd4b505e2cada4a65c22c858d0874b9d.tar.gz
dracut-990e945ffd4b505e2cada4a65c22c858d0874b9d.tar.bz2
dracut-990e945ffd4b505e2cada4a65c22c858d0874b9d.zip
add mtu and macaddr to ip=
Diffstat (limited to 'modules.d/45ifcfg')
-rwxr-xr-xmodules.d/45ifcfg/write-ifcfg.sh3
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