connman-conf: configures connman in qemu machines

For qemu machines, connman should not configure
virtual wired interfaces. Wired interfaces (eth0)
are assigned static IP addresses by the virtual machine
manager (qemu). This packages places the eth0 interface in
a list of blacklisted interfaces, forbiding connman
administering wired interfaces for qemu machines.

(From OE-Core rev: cfd9ab0eff27a59b8b9e750a01565e2e7c94e801)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Cristian Iorga 2013-01-15 22:08:46 +02:00 committed by Richard Purdie
parent e9a1696144
commit 7048fbdc05
3 changed files with 22 additions and 0 deletions

View File

@ -22,6 +22,7 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
shadow-securetty \
opkg-config-base \
netbase \
connman-conf \
formfactor \
xserver-xf86-config \
pointercal \

View File

@ -0,0 +1,18 @@
#connman config to ignore wired interfaces on qemu machines
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
SRC_URI_append_qemuall = " file://main.conf"
PR = "r0"
PACKAGE_ARCH = "${MACHINE_ARCH}"
do_install() {
#Blacklist ethn network interface in case of qemu* machines
if test -e ${WORKDIR}/main.conf; then
install -d ${D}${sysconfdir}/connman
install -m 0644 ${WORKDIR}/main.conf ${D}${sysconfdir}/connman
fi
}

View File

@ -0,0 +1,3 @@
[General]
NetworkInterfaceBlacklist = eth