summaryrefslogtreecommitdiffstats
path: root/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh
blob: 6e73b155d1262cd1e06b610d52a2f75de2f6543a (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
if [ -a /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file ]
then
	x=$(cat /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file)
	if [ -z "$x" ]
	then
		/bin/systemctl stop storage-gadget-init.service
		/bin/systemctl start network-gadget-init.service
	fi
fi