mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 18:52:40 +02:00
connman: fixed init script so connman can runs over nfs
Adding -I to the arguments, connmand will ignore the eth interface, so if you are using nfs it will not be disconnected. OBS: it might not work if using more than one eth interface. But it's better than not using connman with nfs at all. (From OE-Core rev: 6080d1dc719c38fd97c2abd38e0ad938fbf6f452) Signed-off-by: Felipe F. Tonello <ftonello@cercacor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c7f170bcb8
commit
9eb88ceb39
@@ -28,9 +28,11 @@ done
|
||||
|
||||
do_start() {
|
||||
EXTRA_PARAM=""
|
||||
if test $nfsroot -eq 0 ; then
|
||||
$DAEMON $EXTRA_PARAM
|
||||
if test $nfsroot -eq 1 ; then
|
||||
ethn=`ifconfig | grep eth | sed -e "s/\(eth[0-9]\)\(.*\)/\1/"`
|
||||
EXTRA_PARAM="-I $ethn"
|
||||
fi
|
||||
$DAEMON $EXTRA_PARAM
|
||||
}
|
||||
|
||||
do_stop() {
|
||||
|
||||
Reference in New Issue
Block a user