blob: 9051221c4ccc767a67bed48bf65d49ea90a0e04e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
[Unit]
Description=USB Gadget MIDI
Before=gadget-start.service
After=modprobe@usbfunc:midi.service gadget-init.service
Wants=modprobe@usbfunc:midi.service
Requires=gadget-init.service
[Service]
Type=oneshot
RemainAfterExit=yes
SyslogIdentifier=gadget-func-midi
EnvironmentFile=/etc/default/gadget
WorkingDirectory=/sys/kernel/config/usb_gadget
ExecStart=/usr/bin/mkdir ${GADGET}/functions/midi.0
ExecStart=/usr/bin/ln -s ${GADGET}/functions/midi.0 ${GADGET}/configs/a.1/
ExecStop=/usr/bin/rm ${GADGET}/configs/a.1/midi.0
ExecStop=/usr/bin/rmdir ${GADGET}/functions/midi.0
[Install]
WantedBy=usb-gadget.target
|