View Single Post
janszoon's Avatar
Posts: 224 | Thanked: 80 times | Joined on Nov 2009
#1240
Originally Posted by No!No!No!Yes! View Post
Why not:
PHP Code:
if [ "$QBW_EXEC_REASON== "QBW_STARTUP_UPDATE" ]; then
/usr/bin/fmtx_client -p$(if [ $(cut -d. -f1 /proc/uptime ) -lt 100 ]; then echo 0; else /usr/bin/fmtx_client | /bin/grep -'^state=enabled' ; echo $? ; fi) | /usr/bin/awk -"=" '($1=="state") {print $2}' && echo "echo 118 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level" sudo gainroot | echo ""

    
echo "OFF";
    exit 
0;
fi;

if [ 
"$QBW_CURRENT_RESULTS_TEXT== "ON" ]; then
/usr/bin/fmtx_client -p$(if [ $(cut -d. -f1 /proc/uptime ) -lt 100 ]; then echo 0; else /usr/bin/fmtx_client | /bin/grep -'^state=enabled' ; echo $? ; fi) | /usr/bin/awk -"=" '($1=="state") {print $2}'

    
echo "OFF";
    exit 
0;
else
/
usr/bin/fmtx_client -p$(if [ $(cut -d. -f1 /proc/uptime ) -lt 100 ]; then echo 0; else /usr/bin/fmtx_client | /bin/grep -'^state=enabled' ; echo $? ; fi) | /usr/bin/awk -"=" '($1=="state") {print $2}'

    
echo "ON";
    exit 
1;
fi
Hi is there a way to display the currently selected 'FM transmit' eg. 99.3
__________________
My N900 Photo Gallery and Slideshow