mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
netifd: add SLAAC ipv6 value for static-proto
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35346 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user