#!/bin/sh # usb otg mode script # use gainroot to become root and relaunch itself if [ `id -u` != 0 ] ; then # if not already root, call itself as root sudo gainroot <<EOF $0 $* EOF exit fi echo otg > /sys/devices/platform/musb_hdrc/mode
#!/bin/sh # usb host mode script # use gainroot to become root and relaunch itself if [ `id -u` != 0 ] ; then #if not already root, call itself as root sudo gainroot <<EOF $0 $* EOF exit fi echo host > /sys/devices/platform/musb_hdrc/mode
[Desktop Entry] Version=0.1 Encoding=UTF-8 Name=USB Otg Type=Application Comment=USB On the go mode Exec=/home/user/MyDocs/Otg.sh X-Osso-Type=application/x-executable
[Desktop Entry] Version=0.1 Encoding=UTF-8 Name=USB Host Type=Application Comment=USB host mode Exec=/home/user/MyDocs/Host.sh X-Osso-Type=application/x-executable