summarylogtreecommitdiffstats
path: root/usbgadget-func-adb-pre.service
blob: 2c1227ba216ccc703a26c0edb863fe87c26a3f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=USB Gadget Android Debug Bridge Pre-Setup
Before=gadget-start.service
After=modprobe@usbfunc:ffs.service gadget-init.service
Wants=modprobe@usbfunc:ffs.service
Requires=gadget-init.service
[Service]
Type=oneshot
RemainAfterExit=yes
SyslogIdentifier=gadget-func-adb
EnvironmentFile=/etc/default/gadget
WorkingDirectory=/sys/kernel/config/usb_gadget
ExecStart=/usr/bin/mkdir ${GADGET}/functions/ffs.adb
ExecStop=/usr/bin/rmdir ${GADGET}/functions/ffs.adb
[Install]
WantedBy=usb-gadget.target
Also=usbgadget-func-adb-post.service