summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2013-07-03 11:36:23 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-05 15:26:19 +0100
commitcabe22b9470e870e63b5ef1ec8349c67b0823abf (patch)
tree74df0686bfc97b498f98edb01c2042a6254f947d
parent3e1dbabbf33a2e461abc92ff10cd970fe604ee38 (diff)
downloadopenembedded-core-cabe22b9470e870e63b5ef1ec8349c67b0823abf.tar.gz
openembedded-core-cabe22b9470e870e63b5ef1ec8349c67b0823abf.tar.bz2
openembedded-core-cabe22b9470e870e63b5ef1ec8349c67b0823abf.zip
init-ifupdown: set kernel parameters firstly
When do ipv6 ready test, some DAD (duplicate address detect) tests failed since it expect IPV6 will be disabled, but not. even accept_dad has been set to correct value 2. Further investigation shows the root cause is that setting the kernel parameter happens after the NIC is upped. Make kernel parameters be configured before the interfaces is upped, and duplicate setting the kernel parameters does not have negative effect. Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r--meta/recipes-core/init-ifupdown/init-ifupdown-1.0/init1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/init b/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/init
index bace9df991..fb31c635be 100644
--- a/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/init
+++ b/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/init
@@ -58,6 +58,7 @@ check_network_swap() {
case "$1" in
start)
echo -n "Configuring network interfaces... "
+ sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
ifup -a
echo "done."
;;