View Single Post
Posts: 123 | Thanked: 99 times | Joined on Sep 2010 @ Russia
#3
1. /etc/network/if-post-down.d/10_enable_bt:
Code:
#!/bin/sh
if [ "$ICD_CONNECTION_ID" == "GUID_OF_CONNECTION" ]; then
   phone-control --bton
fi
exit 0
/etc/network/if-up.d/10_disable_bt:
Code:
#!/bin/sh
if [ "$ICD_CONNECTION_ID" == "GUID_OF_CONNECTION" ]; then
   phone-control --btoff
fi
exit 0
GUID you can see in output of
Code:
gconftool-2 -R /system/osso/connectivity/IAP