hi. please can you help me with this command because i cant figure out how to make it. if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then # add here switch on instructions echo "ON"; exit 1; fi; if [ "$QBW_CURRENT_RESULTS_TEXT" == "ON" ]; then # add here switch off instructions echo "OFF"; exit 0; else # add here switch on instructions echo "ON"; exit 1; fi; but i want it to enable and disable bluetooth in beecon with on click thank you and regards
if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then # add here switch on instructions dbus-send --system --type=method_call --dest=org.bluez $(dbus-send --system --print-reply --dest=org.bluez / org.bluez.Manager.ListAdapters | awk -F'"' '/at/ {print $2}') org.bluez.Adapter.SetProperty string:Powered variant:boolean:true echo "ON"; exit 1; fi; if [ "$QBW_CURRENT_RESULTS_TEXT" == "ON" ]; then # add here switch off instructions dbus-send --system --type=method_call --dest=org.bluez $(dbus-send --system --print-reply --dest=org.bluez / org.bluez.Manager.ListAdapters | awk -F'"' '/at/ {print $2}') org.bluez.Adapter.SetProperty string:Powered variant:boolean:false echo "OFF"; exit 0; else # add here switch on instructions dbus-send --system --type=method_call --dest=org.bluez $(dbus-send --system --print-reply --dest=org.bluez / org.bluez.Manager.ListAdapters | awk -F'"' '/at/ {print $2}') org.bluez.Adapter.SetProperty string:Powered variant:boolean:true echo "ON"; exit 1; fi;