summaryrefslogtreecommitdiff
path: root/recipes-support
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-11-04 03:25:07 +0100
committerStefan Agner <stefan.agner@toradex.com>2015-11-04 03:25:07 +0100
commitdb61e79e47dea18d35a20eb1129d46e368774105 (patch)
treef4a8422eb70f71745eb7fef584c473e2a462a837 /recipes-support
parentc3a9a9c81ac5e9abbbf7832759c0ba47c2a066e4 (diff)
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.
Diffstat (limited to 'recipes-support')
-rw-r--r--recipes-support/libusbg/libusbg/usbg.service1
1 files changed, 1 insertions, 0 deletions
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