summaryrefslogtreecommitdiffstats
path: root/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service
blob: 9a8513e8a3f332608d4be4ec3030f17fa034ff42 (plain)
1
2
3
4
5
6
7
8
9
10
11
[Unit]
Description=Start usb mass storage gadget
After=dev-mmcblk0p1.device

[Service]
RemainAfterExit=yes
ExecStart=/sbin/modprobe g_mass_storage file=/dev/mmcblk0p1 cdrom=0 stall=0 removable=1 nofua=1
ExecStop=/sbin/rmmod g_mass_storage

[Install]
WantedBy=basic.target