!/bin/sh STATE=`fmtx_client | grep state | cut -d '=' -f2` if [ "disabled" = ${STATE} ] then echo "Turning on FM transmitter" fmtx_client -p1 else echo "Turning off FM transmitter" fmtx_client -p0 fi /bin/echo 118 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level exit 0
user ALL = NOPASSWD: /opt/bin/boostfm.sh
[Desktop Entry] Version=0.1 Type=Application Name=BoostFM Exec=osso-xterm 'sudo /opt/bin/boostfm.sh' Icon=general_fm_transmitter X-Windows-Icon= X-HildonDesk-ShowInToolbar=false X-Osso-Type=application/x-executable