summarylogtreecommitdiffstats
path: root/gadget-init.service
blob: 066fee3b8de0ae502eef190672d831b6a1ab15db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=USB Gadget Init
After=modprobe@libcomposite.service sys-kernel-config.mount
Wants=modprobe@libcomposite.service
Requires=sys-kernel-config.mount
ConditionPathExists=/sys/kernel/config/usb_gadget
[Service]
Type=oneshot
RemainAfterExit=yes
SyslogIdentifier=gadget-init
EnvironmentFile=/etc/default/gadget
WorkingDirectory=/sys/kernel/config/usb_gadget
ExecStart=/usr/bin/bash /usr/lib/systemd/scripts/gadget-init.sh start
[Install]
WantedBy=usb-gadget.target
Also=gadget-start.service