AA: base-files: merge new sysctl-behaviour from trunk
authorcyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 27 May 2013 11:20:54 +0000 (11:20 +0000)
committercyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 27 May 2013 11:20:54 +0000 (11:20 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@36732 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/etc/init.d/boot
package/base-files/files/etc/init.d/sysctl
package/base-files/files/etc/sysctl.conf

index 43837a8..1895f93 100755 (executable)
@@ -95,6 +95,13 @@ start() {
                rootdev=$(awk 'BEGIN { RS=" "; FS="="; } $1 == "root" { print $2 }' < /proc/cmdline)
                [ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
        }
+
+       # 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() {
index 2397790..3480d66 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2006 OpenWrt.org 
 
-START=99
+START=11
 start() {
        [ -f /etc/sysctl.conf ] && sysctl -p -e >&-
 }
index 4ea01bb..890e77a 100644 (file)
@@ -12,7 +12,8 @@ net.ipv4.tcp_timestamps=1
 net.ipv4.tcp_sack=1
 net.ipv4.tcp_dsack=1
 
-net.ipv6.conf.all.forwarding=1
+net.ipv6.conf.default.forwarding=2
+net.ipv6.conf.all.forwarding=2
 
 net.netfilter.nf_conntrack_acct=1
 net.netfilter.nf_conntrack_checksum=0