Skip to content
Snippets Groups Projects
Commit 366c6246 authored by cyrus's avatar cyrus
Browse files

netifd: add SLAAC ipv6 value for static-proto

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35346 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 230548a0
No related branches found
No related tags found
No related merge requests found
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
......
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment