I am looking for a way to quickly and easily run some simple scripts - the most immediate example is the one line scripts for switching USB host mode on and off:<br>echo host &gt; /sys/devices/platform/musb_hdrc/mode<br>and
<br>echo otg &gt; /sys/devices/platform/musb_hdrc/mode<br><br>I really don&#39;t want to have to fire up the terminal and type these out (and yes I know tab auto complete can speed this up, but this is still not as easy as a menu item!)
<br><br>I am very much a noob so the following idea may be naive and may be shot down immediately:<br>I am assuming I could create a menu item that would run a shell script? Not sure whether these desktop files need to point at executables or whether executable scripts are also OK?
<br><br>[Desktop Entry]<br>Version=1.0<br>Encoding=UTF-8 ?? needed?<br>Name=MyShinyScript<br>Exec=/usr/bin/myscript.sh (or .py or whatever)<br>Icon=MyNiceIcon (I can create the correct transparent png)<br>Type=Application ?? needed?
<br>StartupWMClass= ?? needed?<br>X-Osso-Type=application/x-executable ?? needed?<br>X-Osso-Service=com.nokia. ?? needed?<br><br>I am guessing MyShinyScript would look something like:<br><br>#!/bin/sh<br>echo host &gt; /sys/devices/platform/musb_hdrc/mode
<br>I know I must make the scripts executable with chmod +x<br><br>Of course all this is probably going to be superceded by some kind person who has set up Scratchbox and got their teeth into real programming - a proper Maemo application which installs a simple host mode on-off utility would seem to be a logical development, but in the meanwhile, a scripted hack would be good for me!
<br><br>Please could somebody tell me if my mad idea will work or whether I should go home and start proper application development?<br><br>Cheers<br><br>J<br><br>