diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2012-01-31 16:34:00 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-02-07 17:36:46 +0100 |
commit | f244d42300e290fac43bedf875c199fa0e8ad2f5 (patch) | |
tree | 36f6ac554603ad9644b85679aed176403dc036c1 /recipes-ti/beagleboard/gadget-init | |
parent | 4a759de7bb1529bffbeea2c2a28eff076c29b6e5 (diff) | |
download | meta-ti-f244d42300e290fac43bedf875c199fa0e8ad2f5.tar.gz |
gadget-init: adjust for kernel 3.2 based sysfs layout
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-ti/beagleboard/gadget-init')
-rw-r--r-- | recipes-ti/beagleboard/gadget-init/99-hokey-pokey.rules | 2 | ||||
-rwxr-xr-x | recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh | 4 | ||||
-rwxr-xr-x | recipes-ti/beagleboard/gadget-init/hokey-pokey.sh | 7 |
3 files changed, 2 insertions, 11 deletions
diff --git a/recipes-ti/beagleboard/gadget-init/99-hokey-pokey.rules b/recipes-ti/beagleboard/gadget-init/99-hokey-pokey.rules deleted file mode 100644 index bb3c8d34..00000000 --- a/recipes-ti/beagleboard/gadget-init/99-hokey-pokey.rules +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | ACTION=="remove", DEVPATH=="/devices/platform/omap/ti81xx-usbss/musb-hdrc.1/usb1/1-1", RUN+="/usr/bin/hokey-pokey.sh" | ||
2 | |||
diff --git a/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh b/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh index 076a5fe8..6e73b155 100755 --- a/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh +++ b/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | if [ -a /sys/devices/platform/omap/ti81xx-usbss/musb-hdrc.0/gadget/lun0/file ] | 2 | if [ -a /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file ] |
3 | then | 3 | then |
4 | x=$(cat /sys/devices/platform/omap/ti81xx-usbss/musb-hdrc.0/gadget/lun0/file) | 4 | x=$(cat /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file) |
5 | if [ -z "$x" ] | 5 | if [ -z "$x" ] |
6 | then | 6 | then |
7 | /bin/systemctl stop storage-gadget-init.service | 7 | /bin/systemctl stop storage-gadget-init.service |
diff --git a/recipes-ti/beagleboard/gadget-init/hokey-pokey.sh b/recipes-ti/beagleboard/gadget-init/hokey-pokey.sh deleted file mode 100755 index 2139eb02..00000000 --- a/recipes-ti/beagleboard/gadget-init/hokey-pokey.sh +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | sleep 1 | ||
4 | echo F > /proc/driver/musb_hdrc.1 | ||
5 | sleep 1 | ||
6 | echo F > /proc/driver/musb_hdrc.1 | ||
7 | |||