mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 18:56:37 +00:00
base-files: Fix IPv6 early sysctls again * Kernel IPv6 /proc interface inconsistency caused races
SVN-Revision: 35417
This commit is contained in:
parent
416ce374c0
commit
92ad26d1b6
@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
include $(INCLUDE_DIR)/version.mk
|
include $(INCLUDE_DIR)/version.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=130
|
PKG_RELEASE:=131
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
PKG_BUILD_DEPENDS:=opkg/host
|
PKG_BUILD_DEPENDS:=opkg/host
|
||||||
|
@ -96,8 +96,12 @@ start() {
|
|||||||
[ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
|
[ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
|
||||||
}
|
}
|
||||||
|
|
||||||
# run early sysctl
|
# early sysctl to avoid networking races
|
||||||
[ -f /etc/sysctl_early.conf ] && sysctl -p /etc/sysctl_early.conf -e >&-
|
if [ -d /proc/sys/net/ipv6/conf ]; then
|
||||||
|
for i in /proc/sys/net/ipv6/conf/*/accept_ra; do
|
||||||
|
echo 0 > $i
|
||||||
|
done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
# Avoid race-conditions with SLAAC
|
|
||||||
net.ipv6.conf.default.accept_ra=0
|
|
||||||
net.ipv6.conf.all.accept_ra=0
|
|
Loading…
Reference in New Issue
Block a user