summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/init-ifupdown
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2013-07-03 03:36:23 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-05 14:34:21 (GMT)
commite695d4104f04c02fdb9298ec31d1ff69d877dbc9 (patch)
tree0893c4ebbd033ee67e2ebcc297fe08075c56d131 /meta/recipes-core/init-ifupdown
parent8a186a6b3853fc1a7dcf342d421c8926c38949c9 (diff)
downloadpoky-e695d4104f04c02fdb9298ec31d1ff69d877dbc9.tar.gz
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. (From OE-Core rev: cabe22b9470e870e63b5ef1ec8349c67b0823abf) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/init-ifupdown')
-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 bace9df..fb31c63 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() {
58case "$1" in 58case "$1" in
59start) 59start)
60 echo -n "Configuring network interfaces... " 60 echo -n "Configuring network interfaces... "
61 sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
61 ifup -a 62 ifup -a
62 echo "done." 63 echo "done."
63 ;; 64 ;;