We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6079974 + c5ac864 commit 0334159Copy full SHA for 0334159
services/systemd/xg_multi.service
@@ -5,9 +5,10 @@
5
6
[Unit]
7
Description=Extended Multifunction Composite USB-gadget
8
-Requires=sys-kernel-config.mount
9
-After=sysinit.target sys-kernel-config.mount local-fs.target syslog.service
10
-Before=NetworkManager.service [email protected]
+ConditionPathIsDirectory=/sys/class/udc
+Wants=network-pre.target
+After=local-fs.target syslog.service
11
+Before=network-pre.target [email protected]
12
13
[Service]
14
EnvironmentFile=/etc/default/xg_multi
@@ -17,5 +18,5 @@ ExecStart=/usr/bin/xg_multi $XG_MULTI_OPTS
17
18
ExecStop=/usr/bin/xg_multi -r
19
20
[Install]
-WantedBy=multi-user.target
21
+WantedBy=usb-gadget.target
22
0 commit comments