diff options
author | Bill Nottingham <notting@redhat.com> | 2011-01-04 16:00:38 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-01-04 16:00:38 -0500 |
commit | db18c076d609498aeca61e15b612c48351cc1c01 (patch) | |
tree | 46d8fb36813d7f4f8800381b6d1afc79f97476ed /sysconfig/network-scripts/ifup-ipv6 | |
parent | 328e7a968515028d5668a63e6f4851a9c8c7e4a3 (diff) | |
download | initscripts-db18c076d609498aeca61e15b612c48351cc1c01.tar initscripts-db18c076d609498aeca61e15b612c48351cc1c01.tar.gz initscripts-db18c076d609498aeca61e15b612c48351cc1c01.tar.bz2 initscripts-db18c076d609498aeca61e15b612c48351cc1c01.tar.xz initscripts-db18c076d609498aeca61e15b612c48351cc1c01.zip |
Frob device when calling sysctl, in case of vlans. (#665601, #667211, <ossman@cendio.se>)
Diffstat (limited to 'sysconfig/network-scripts/ifup-ipv6')
-rwxr-xr-x | sysconfig/network-scripts/ifup-ipv6 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysconfig/network-scripts/ifup-ipv6 b/sysconfig/network-scripts/ifup-ipv6 index 29ba8af2..da1062ec 100755 --- a/sysconfig/network-scripts/ifup-ipv6 +++ b/sysconfig/network-scripts/ifup-ipv6 @@ -124,9 +124,9 @@ else ipv6_local_auto=0 fi fi -/sbin/sysctl -e -w net.ipv6.conf.$DEVICE.forwarding=$ipv6_local_forwarding >/dev/null 2>&1 -/sbin/sysctl -e -w net.ipv6.conf.$DEVICE.accept_ra=$ipv6_local_auto >/dev/null 2>&1 -/sbin/sysctl -e -w net.ipv6.conf.$DEVICE.accept_redirects=$ipv6_local_auto >/dev/null 2>&1 +/sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.forwarding=$ipv6_local_forwarding >/dev/null 2>&1 +/sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.accept_ra=$ipv6_local_auto >/dev/null 2>&1 +/sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.accept_redirects=$ipv6_local_auto >/dev/null 2>&1 # Set IPv6 MTU, if given if [ -n "$IPV6_MTU" ]; then @@ -142,7 +142,7 @@ fi # Enable IPv6 RFC3041 privacy extensions if desired if [ "$IPV6_PRIVACY" = "rfc3041" ]; then - /sbin/sysctl -e -w net.ipv6.conf.$DEVICE.use_tempaddr=2 >/dev/null 2>&1 + /sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.use_tempaddr=2 >/dev/null 2>&1 if [ $? -ne 0 ]; then echo $"Cannot enable IPv6 privacy method '$IPV6_PRIVACY', not supported by kernel" fi |