netifd: add SLAAC ipv6 value for static-proto
SVN-Revision: 35346
This commit is contained in:
parent
e964fa5d8f
commit
75b06607db
2 changed files with 17 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=netifd
|
PKG_NAME:=netifd
|
||||||
PKG_VERSION:=2013-01-22.1
|
PKG_VERSION:=2013-01-28
|
||||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue