diff options
| -rw-r--r-- | meta/recipes-connectivity/connman/connman/connman | 14 | 
1 files changed, 12 insertions, 2 deletions
| diff --git a/meta/recipes-connectivity/connman/connman/connman b/meta/recipes-connectivity/connman/connman/connman index 67ba7c8a2a..2625adeead 100644 --- a/meta/recipes-connectivity/connman/connman/connman +++ b/meta/recipes-connectivity/connman/connman/connman | |||
| @@ -29,8 +29,18 @@ done | |||
| 29 | do_start() { | 29 | do_start() { | 
| 30 | EXTRA_PARAM="" | 30 | EXTRA_PARAM="" | 
| 31 | if test $nfsroot -eq 1 ; then | 31 | if test $nfsroot -eq 1 ; then | 
| 32 | ethn=`ifconfig | grep eth | sed -e "s/\(eth[0-9]\)\(.*\)/\1/"` | 32 | NET_DEVS=`cat /proc/net/dev | sed -ne 's/^\([a-zA-Z0-9 ]*\):.*$/\1/p'` | 
| 33 | EXTRA_PARAM="-I $ethn" | 33 | NET_ADDR=`cat /proc/cmdline | sed -ne 's/^.*ip=\([^ ]*\):.*$/\1/p'` | 
| 34 | |||
| 35 | if [ x$NET_ADDR != x ]; then | ||
| 36 | for i in $NET_DEVS; do | ||
| 37 | ADDR=`ifconfig $i | sed 's/addr://g' | sed -ne 's/^.*inet \([0-9.]*\) .*$/\1/p'` | ||
| 38 | if [ "$NET_ADDR" = "$ADDR" ]; then | ||
| 39 | EXTRA_PARAM="-I $i" | ||
| 40 | break | ||
| 41 | fi | ||
| 42 | done | ||
| 43 | fi | ||
| 34 | fi | 44 | fi | 
| 35 | if [ -f @LIBDIR@/connman/wired-setup ] ; then | 45 | if [ -f @LIBDIR@/connman/wired-setup ] ; then | 
| 36 | . @LIBDIR@/connman/wired-setup | 46 | . @LIBDIR@/connman/wired-setup | 
