aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-01-28 13:53:48 +0000
committerSteven Barth <steven@midlink.org>2013-01-28 13:53:48 +0000
commit0f6d7ebb06567e86ce7f77cd52fe81126756494e (patch)
tree7b9f383965e3779c1cfa6a6989c4cd99250db846 /package/network
parente486e3e8b094e2341fa0984abac6ee5d75a232fe (diff)
downloadupstream-0f6d7ebb06567e86ce7f77cd52fe81126756494e.tar.gz
upstream-0f6d7ebb06567e86ce7f77cd52fe81126756494e.tar.bz2
upstream-0f6d7ebb06567e86ce7f77cd52fe81126756494e.zip
netifd: add SLAAC ipv6 value for static-proto
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35346 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rw-r--r--package/network/config/netifd/Makefile2
-rw-r--r--package/network/config/netifd/files/etc/hotplug.d/iface/10-ipv6-static16
2 files changed, 17 insertions, 1 deletions
diff --git a/package/network/config/netifd/Makefile b/package/network/config/netifd/Makefile
index 73fa20fc7f..b7baf05da8 100644
--- a/package/network/config/netifd/Makefile
+++ b/package/network/config/netifd/Makefile
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=netifd
-PKG_VERSION:=2013-01-22.1
+PKG_VERSION:=2013-01-28
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
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
new file mode 100644
index 0000000000..9f5b72716b
--- /dev/null
+++ b/package/network/config/netifd/files/etc/hotplug.d/iface/10-ipv6-static
@@ -0,0 +1,16 @@
+case "$ACTION" in
+ ifup)
+ . /lib/functions.sh
+
+ local proto ip6slaac
+ config_load network
+ config_get proto "$INTERFACE" proto
+ config_get_bool ip6slaac "$INTERFACE" ip6slaac
+
+ 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"
+ fi
+ ;;
+esac
+