diff options
author | Harald Hoyer <harald@redhat.com> | 2012-09-06 11:38:48 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2012-09-06 11:38:48 +0200 |
commit | 32ec0a762d1dce36f20857ffd222863a3d550ed7 (patch) | |
tree | a4c301598de29133fd0d802e468c50c51bb46c65 | |
parent | ca121b1a5c70c0ca15a1c797e5af5df4592c6e80 (diff) | |
download | dracut-32ec0a762d1dce36f20857ffd222863a3d550ed7.tar.gz dracut-32ec0a762d1dce36f20857ffd222863a3d550ed7.tar.bz2 dracut-32ec0a762d1dce36f20857ffd222863a3d550ed7.zip |
ifcfg/write-ifcfg.sh: add "IPV6INIT=yes" for IPv6
https://bugzilla.redhat.com/show_bug.cgi?id=852808
-rwxr-xr-x | modules.d/45ifcfg/write-ifcfg.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh index b62170dd..8cc37965 100755 --- a/modules.d/45ifcfg/write-ifcfg.sh +++ b/modules.d/45ifcfg/write-ifcfg.sh @@ -105,6 +105,7 @@ for netif in $IFACES ; do [ -n "$mtu" ] && echo "MTU=$mtu" if [ -f /tmp/net.$netif.lease ]; then strstr "$ip" '*:*:*' && + echo "IPV6INIT=yes" echo "DHCPV6C=yes" echo "BOOTPROTO=dhcp" cp /tmp/net.$netif.lease /tmp/ifcfg-leases/dhclient-$uuid-$netif.lease @@ -112,6 +113,7 @@ for netif in $IFACES ; do # If we've booted with static ip= lines, the override file is there [ -e /tmp/net.$netif.override ] && . /tmp/net.$netif.override if strstr "$ip" '*:*:*'; then + echo "IPV6INIT=yes" echo "IPV6_AUTOCONF=no" echo "IPV6ADDR=$ip/$mask" else |