From db61e79e47dea18d35a20eb1129d46e368774105 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 4 Nov 2015 03:25:07 +0100 Subject: libusbg: enable USB Gadgets after Connman to avoid interference It seems that Connman disables ALL interfaces on startup, even if they are listed in NetworkInterfaceBlacklist. This leads to the following situation: networkd starts... usb0 gets created... networkd sets the device up (event triggered) connman starts... and sets the device down! networkd does not restart the device in this situation. To avoid the situation, create the USB Gadget functions after connman. It seems that if connman is up and running, it does not touch the device anymore. --- recipes-support/libusbg/libusbg/usbg.service | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-support/libusbg/libusbg/usbg.service b/recipes-support/libusbg/libusbg/usbg.service index ac16ee3..4119ed4 100644 --- a/recipes-support/libusbg/libusbg/usbg.service +++ b/recipes-support/libusbg/libusbg/usbg.service @@ -1,6 +1,7 @@ [Unit] Description=Load default USB gadget schema g1.schema ConditionPathExists=/etc/usbg/g1.schema +After=connman.service [Service] Type=oneshot -- cgit v1.2.3