601e0d7cceced9e56c31ccf0ec0c28e55c3bb42a
[glsdk/meta-ti-glsdk.git] / recipes-ti / beagleboard / gadget-init / storage-gadget-init.service
1 [Unit]
2 Description=Start usb mass storage gadget
3 After=dev-mmcblk0p1.device
5 [Service]
6 RemainAfterExit=yes
7 ExecStartPre=/usr/bin/update-image-info-on-mmcblk0p1.sh
8 ExecStart=/sbin/modprobe g_mass_storage file=/dev/mmcblk0p1 cdrom=0 stall=0 removable=1 nofua=1
9 ExecStop=/sbin/rmmod g_mass_storage
11 [Install]
12 WantedBy=basic.target