1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 12:49:46 +00:00

connman: Do not take over ethernet interface if target is boot by nfs

Detect if target system is booting by nfs, connman will
not take over the ethernet interface.

This fixes [BUGID #364]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
This commit is contained in:
Dongxiao Xu
2010-10-11 15:48:03 +08:00
committed by Richard Purdie
parent ded2919f19
commit 771fb55d6b
2 changed files with 22 additions and 2 deletions
@@ -10,8 +10,28 @@ fi
set -e set -e
nfsroot=0
exec 9<&0 < /proc/mounts
while read dev mtpt fstype rest; do
if test $mtpt = "/" ; then
case $fstype in
nfs | nfs4)
nfsroot=1
break
;;
*)
;;
esac
fi
done
do_start() { do_start() {
$DAEMON EXTRA_PARAM=""
if test $nfsroot -eq 1 ; then
EXTRA_PARAM="-P ethernet"
fi
$DAEMON $EXTRA_PARAM
} }
do_stop() { do_stop() {
@@ -1,5 +1,5 @@
require connman.inc require connman.inc
PR = "r1" PR = "r2"
EXTRA_OECONF += "\ EXTRA_OECONF += "\
ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \ ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \