summaryrefslogtreecommitdiffstats
path: root/package/network/config/netifd/files/etc/hotplug.d/iface/10-ipv6-static
diff options
context:
space:
mode:
authorcyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-01-28 14:07:27 +0000
committercyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-01-28 14:07:27 +0000
commitd13c2f4628849e9b804e636bc6b62dfe7b44de3d (patch)
tree2bde5b028b2ec8c8506c3a959fc9936263c7880a /package/network/config/netifd/files/etc/hotplug.d/iface/10-ipv6-static
parent366c624699f0b52cb5ec0630191e14561d8723ef (diff)
netifd: IPv6 sysctl, restart IPv6 in static mode to send RS
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35347 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/config/netifd/files/etc/hotplug.d/iface/10-ipv6-static')
-rw-r--r--package/network/config/netifd/files/etc/hotplug.d/iface/10-ipv6-static4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/network/config/netifd/files/etc/hotplug.d/iface/10-ipv6-static b/package/network/config/netifd/files/etc/hotplug.d/iface/10-ipv6-static
index 9f5b72716..7f671b1c2 100644
--- a/package/network/config/netifd/files/etc/hotplug.d/iface/10-ipv6-static
+++ b/package/network/config/netifd/files/etc/hotplug.d/iface/10-ipv6-static
@@ -10,6 +10,10 @@ case "$ACTION" in
if [ "$proto" = "static" -a "$ip6slaac" = "1" ]; then
echo 2 > "/proc/sys/net/ipv6/conf/$DEVICE/accept_ra"
echo 2 > "/proc/sys/net/ipv6/conf/$DEVICE/forwarding"
+
+ # Though this should be save here, it is not recommended
+ echo 1 > "/proc/sys/net/ipv6/conf/$DEVICE/disable_ipv6"
+ echo 0 > "/proc/sys/net/ipv6/conf/$DEVICE/disable_ipv6"
fi
;;
esac