From: Felipe Ferreri Tonello <ftonello@cercacor.com>
To: <poky@yoctoproject.org>
Subject: [PATCH] connman: fixed init script, so it can run with nfs
Date: Wed, 10 Oct 2012 09:24:55 -0700 [thread overview]
Message-ID: <5075A157.1010601@cercacor.com> (raw)
In-Reply-To: <1349809566-7013-1-git-send-email-ftonello@cercacor.com>
From: "Felipe F. Tonello" <ftonello@cercacor.com>
Adding -I to the arguments, connmand will ignore the eth interface, so
if you are
using nfs it will not be disconnected.
FIXME: it might not work if using more than one eth interface. But it's
better
than not using connman with nfs at all.
Signed-off-by: Felipe F. Tonello <ftonello@cercacor.com>
---
meta/recipes-connectivity/connman/connman/connman | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-connectivity/connman/connman/connman
b/meta/recipes-connectivity/connman/connman/connman
index 4a0017f..e90925e 100644
--- a/meta/recipes-connectivity/connman/connman/connman
+++ b/meta/recipes-connectivity/connman/connman/connman
@@ -26,11 +26,14 @@ while read dev mtpt fstype rest; do
fi
done
+ethn=`ifconfig | grep eth | sed -e "s/\(eth[0-9]\)\(.*\)/\1/"`
+
do_start() {
EXTRA_PARAM=""
- if test $nfsroot -eq 0 ; then
- $DAEMON $EXTRA_PARAM
+ if test $nfsroot -eq 1 ; then
+ EXTRA_PARAM="-I $ethn"
fi
+ $DAEMON $EXTRA_PARAM
}
do_stop() {
--
1.7.9.5
next parent reply other threads:[~2012-10-10 16:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1349809566-7013-1-git-send-email-ftonello@cercacor.com>
2012-10-10 16:24 ` Felipe Ferreri Tonello [this message]
2013-01-09 0:37 [PATCH] connman: fixed init script, so it can run with nfs eu
2013-01-09 10:12 ` Iorga, Cristian
2013-01-09 13:03 ` Richard Purdie
2013-01-09 18:14 ` Felipe Ferreri Tonello
2013-01-10 19:23 ` Felipe Ferreri Tonello
2013-01-10 23:57 ` Richard Purdie
2013-01-11 1:17 ` Felipe Ferreri Tonello
2013-01-11 16:13 ` Richard Purdie
2013-01-09 18:15 ` Felipe Ferreri Tonello
2013-01-10 7:33 ` Iorga, Cristian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5075A157.1010601@cercacor.com \
--to=ftonello@cercacor.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.