git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@36732
3c298f89-4303-0410-b956-
a3cf2f4a3e73
rootdev=$(awk 'BEGIN { RS=" "; FS="="; } $1 == "root" { print $2 }' < /proc/cmdline)
[ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
}
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
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
start() {
[ -f /etc/sysctl.conf ] && sysctl -p -e >&-
}
start() {
[ -f /etc/sysctl.conf ] && sysctl -p -e >&-
}
net.ipv4.tcp_sack=1
net.ipv4.tcp_dsack=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
net.netfilter.nf_conntrack_acct=1
net.netfilter.nf_conntrack_checksum=0