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