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