From db18c076d609498aeca61e15b612c48351cc1c01 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 4 Jan 2011 16:00:38 -0500 Subject: Frob device when calling sysctl, in case of vlans. (#665601, #667211, ) --- sysconfig/network-scripts/network-functions-ipv6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysconfig/network-scripts/network-functions-ipv6') diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6 index 6af9c8cb..24100cba 100644 --- a/sysconfig/network-scripts/network-functions-ipv6 +++ b/sysconfig/network-scripts/network-functions-ipv6 @@ -765,9 +765,9 @@ ipv6_add_tunnel_device() { fi # Set sysctls proper (regardless "default") - /sbin/sysctl -e -w net.ipv6.conf.$device.forwarding=1 >/dev/null 2>&1 - /sbin/sysctl -e -w net.ipv6.conf.$device.accept_ra=0 >/dev/null 2>&1 - /sbin/sysctl -e -w net.ipv6.conf.$device.accept_redirects=0 >/dev/null 2>&1 + /sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.forwarding=1 >/dev/null 2>&1 + /sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.accept_ra=0 >/dev/null 2>&1 + /sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.accept_redirects=0 >/dev/null 2>&1 if [ -n "$addressipv6local" ]; then # Setup P-t-P address -- cgit v1.2.1