View Single Post
Switch_'s Avatar
Posts: 601 | Thanked: 549 times | Joined on Mar 2010 @ Redditch, UK
#2683
Matter of fact, I need some help - I want to add another couple of buttons into the mix, one to enable the FM transmitter and another to disable it. The script comes from DCEW and is presented as
Code:
/usr/bin/fmtx_client -p$(if [ $(cut -d. -f1 /proc/uptime ) -lt 100 ]; then echo 0; else /usr/bin/fmtx_client | /bin/grep -q '^state=enabled' ; echo $? ; fi) | /usr/bin/awk -F "=" '($1=="state") {print $2}'
Me not being a coding expert I'm not 100% on what does what within the script and whether I need the "{print}" outputs, so in order to create this new button does anyone have any pointers on how to modify the script to work within a beecon?

EDIT
Scratch that, done it and it works a treat
/EDIT

EDIT 2
Ok, so techie is a God at all things beecon related but I can't get it to update the icon once pressed and the FM transmitter is enabled - anyone know how to do this? Any help gratefully received....
/EDIT 2
__________________
---<|| Alt + F4 for GOD MODE ||>---
---<|| Deviant Art Linky Linky ||>---

Last edited by Switch_; 2011-03-08 at 14:52.