diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2015-11-04 03:25:07 +0100 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2015-11-04 03:25:07 +0100 |
commit | fadb16f153aa90283ad082e6a16b277ab696fda9 (patch) | |
tree | ca2b9cc6037dccb3ae4a2c80979674e27e759e01 | |
parent | f2bae7c6b33913dcad88b085285f52d0eb4474fc (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.
-rw-r--r-- | recipes-support/libusbg/libusbg/usbg.service | 1 |
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 |