From 3270c5ae6701c17730c7f7573678b021826bcf18 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 28 Apr 2015 10:01:23 +0200 Subject: connman: blacklist USB gadget devices Connman gained support for USB gadget. The typical usecase is to use USB gadget for tethering. In this use case the module would be the device sharing the connection to the USB host connected to the module. However, our typical use case in mind for RNDIS is a simple ethernet connection between a development host and the module, hence no need for tethering/routing. This however is not easily doable with connman, since connman tries to have one connection online only. When enabling USB gadget as a normal ethernet device, this typically leads to classic ethernet not being configured since the USB RNDIS connection is already up and running. By blacklisting USB gadget, connman won't touch the device and we can use other means of bringing up the network interface. --- recipes-connectivity/connman/connman_%.bbappend | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'recipes-connectivity/connman/connman_%.bbappend') diff --git a/recipes-connectivity/connman/connman_%.bbappend b/recipes-connectivity/connman/connman_%.bbappend index 851b00d..60edc3b 100644 --- a/recipes-connectivity/connman/connman_%.bbappend +++ b/recipes-connectivity/connman/connman_%.bbappend @@ -2,4 +2,10 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/connman:" SRC_URI += " \ file://dont_start_connman_on_nfsboot.patch \ + file://main.conf \ " + +do_install_append() { + install -d ${D}${sysconfdir}/connman/ + install -m 0644 ${WORKDIR}/main.conf ${D}${sysconfdir}/connman/ +} -- cgit v1.2.3