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

netifd: IPv6 sysctl, restart IPv6 in static mode to send RS

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35347 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 366c6246
No related branches found
No related tags found
No related merge requests found
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
......
......@@ -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
......
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