2
0
forked from Ivasoft/openwrt

base-files: Fix IPv6 early sysctls again * Kernel IPv6 /proc interface inconsistency caused races

SVN-Revision: 35417
This commit is contained in:
Steven Barth
2013-02-01 12:28:24 +00:00
parent 416ce374c0
commit 92ad26d1b6
3 changed files with 7 additions and 6 deletions

View File

@@ -96,8 +96,12 @@ start() {
[ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
}
# run early sysctl
[ -f /etc/sysctl_early.conf ] && sysctl -p /etc/sysctl_early.conf -e >&-
# early sysctl to avoid networking races
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() {