diff options
| -rwxr-xr-x | meta/recipes-connectivity/connman/connman-0.56/connman | 22 | ||||
| -rw-r--r-- | meta/recipes-connectivity/connman/connman_0.56.bb | 2 |
2 files changed, 22 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/connman/connman-0.56/connman b/meta/recipes-connectivity/connman/connman-0.56/connman index f8154f68f9..f01bf371c2 100755 --- a/meta/recipes-connectivity/connman/connman-0.56/connman +++ b/meta/recipes-connectivity/connman/connman-0.56/connman | |||
| @@ -10,8 +10,28 @@ fi | |||
| 10 | 10 | ||
| 11 | set -e | 11 | set -e |
| 12 | 12 | ||
| 13 | nfsroot=0 | ||
| 14 | |||
| 15 | exec 9<&0 < /proc/mounts | ||
| 16 | while read dev mtpt fstype rest; do | ||
| 17 | if test $mtpt = "/" ; then | ||
| 18 | case $fstype in | ||
| 19 | nfs | nfs4) | ||
| 20 | nfsroot=1 | ||
| 21 | break | ||
| 22 | ;; | ||
| 23 | *) | ||
| 24 | ;; | ||
| 25 | esac | ||
| 26 | fi | ||
| 27 | done | ||
| 28 | |||
| 13 | do_start() { | 29 | do_start() { |
| 14 | $DAEMON | 30 | EXTRA_PARAM="" |
| 31 | if test $nfsroot -eq 1 ; then | ||
| 32 | EXTRA_PARAM="-P ethernet" | ||
| 33 | fi | ||
| 34 | $DAEMON $EXTRA_PARAM | ||
| 15 | } | 35 | } |
| 16 | 36 | ||
| 17 | do_stop() { | 37 | do_stop() { |
diff --git a/meta/recipes-connectivity/connman/connman_0.56.bb b/meta/recipes-connectivity/connman/connman_0.56.bb index 69dad66d58..665da32f03 100644 --- a/meta/recipes-connectivity/connman/connman_0.56.bb +++ b/meta/recipes-connectivity/connman/connman_0.56.bb | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | require connman.inc | 1 | require connman.inc |
| 2 | PR = "r1" | 2 | PR = "r2" |
| 3 | 3 | ||
| 4 | EXTRA_OECONF += "\ | 4 | EXTRA_OECONF += "\ |
| 5 | ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \ | 5 | ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \ |
