Patchwork [1/1] init-ifupdown: set kernel parameters firstly

login
register
mail settings
Submitter jackie huang
Date July 3, 2013, 3:36 a.m.
Message ID <bfa207a7e48a5d71cea1307a24fb4ebee19deb83.1372822287.git.jackie.huang@windriver.com>
Download mbox | patch
Permalink /patch/52857/
State Accepted
Commit e695d4104f04c02fdb9298ec31d1ff69d877dbc9
Headers show

Comments

jackie huang - July 3, 2013, 3:36 a.m.
From: Jackie Huang <jackie.huang@windriver.com>

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>
---
 .../init-ifupdown/init-ifupdown-1.0/init           |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

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() {
 case "$1" in
 start)
 	echo -n "Configuring network interfaces... "
+	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 	ifup -a
 	echo "done."
 	;;