mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-28 22:59:17 +00:00
netifd: IPv6 sysctl, restart IPv6 in static mode to send RS
SVN-Revision: 35347
This commit is contained in:
parent
75b06607db
commit
ec41a6a08c
@ -1,7 +1,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=netifd
|
PKG_NAME:=netifd
|
||||||
PKG_VERSION:=2013-01-28
|
PKG_VERSION:=2013-01-28.1
|
||||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
|
@ -10,6 +10,10 @@ case "$ACTION" in
|
|||||||
if [ "$proto" = "static" -a "$ip6slaac" = "1" ]; then
|
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/accept_ra"
|
||||||
echo 2 > "/proc/sys/net/ipv6/conf/$DEVICE/forwarding"
|
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
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user