netifd: IPv6 sysctl, restart IPv6 in static mode to send RS
authorSteven Barth <cyrus@openwrt.org>
Mon, 28 Jan 2013 14:07:27 +0000 (14:07 +0000)
committerSteven Barth <cyrus@openwrt.org>
Mon, 28 Jan 2013 14:07:27 +0000 (14:07 +0000)
SVN-Revision: 35347

package/network/config/netifd/Makefile
package/network/config/netifd/files/etc/hotplug.d/iface/10-ipv6-static

index b7baf05..a8f4ada 100644 (file)
@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=netifd
-PKG_VERSION:=2013-01-28
+PKG_VERSION:=2013-01-28.1
 PKG_RELEASE=$(PKG_SOURCE_VERSION)
 
 PKG_SOURCE_PROTO:=git
index 9f5b727..7f671b1 100644 (file)
@@ -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