phi
01-14-2007, 06:43 PM
so after all the pains of getting the PAN Bluetooth profile on my T-mobile Dash to share its internet connection to my N770 (http://www.internettablettalk.com/forums/showthread.php?t=3402), I've been reading
http://maemo.org/maemowiki/BluetoothNetworkingAndConnectionManager
to try to connect right when I select the DEFAULT Dummy AP on my connection selection. However its not working.
Right now, I have to select the dummy AP, then open Xterm, and run an "./up" script on my root folder and to disconnect, I have to run the "./down" script when i disconnect.
So I tried to do everything via the How-To and that didn't work. So I tried replacing
Nokia770-26:/# cat /usr/bin/dbus-script
#!/bin/sh
[ "$3" = "com.nokia.icd" ] || exit 0
[ "$5" != "DEFAULT" -o "$7" != "CONNECTED" ] || /usr/local/bin/btconnect.script
[ "$5" != "DEFAULT" -o "$7" != "IDLE" ] || /usr/local/bin/btdisconnect.script
with
Nokia770-26:/# cat /usr/bin/dbus-script
#!/bin/sh
[ "$3" = "com.nokia.icd" ] || exit 0
[ "$5" != "DEFAULT" -o "$7" != "CONNECTED" ] || /up
[ "$5" != "DEFAULT" -o "$7" != "IDLE" ] || /down
and that doesn't want to work. Anyone have any pointers?
http://maemo.org/maemowiki/BluetoothNetworkingAndConnectionManager
to try to connect right when I select the DEFAULT Dummy AP on my connection selection. However its not working.
Right now, I have to select the dummy AP, then open Xterm, and run an "./up" script on my root folder and to disconnect, I have to run the "./down" script when i disconnect.
So I tried to do everything via the How-To and that didn't work. So I tried replacing
Nokia770-26:/# cat /usr/bin/dbus-script
#!/bin/sh
[ "$3" = "com.nokia.icd" ] || exit 0
[ "$5" != "DEFAULT" -o "$7" != "CONNECTED" ] || /usr/local/bin/btconnect.script
[ "$5" != "DEFAULT" -o "$7" != "IDLE" ] || /usr/local/bin/btdisconnect.script
with
Nokia770-26:/# cat /usr/bin/dbus-script
#!/bin/sh
[ "$3" = "com.nokia.icd" ] || exit 0
[ "$5" != "DEFAULT" -o "$7" != "CONNECTED" ] || /up
[ "$5" != "DEFAULT" -o "$7" != "IDLE" ] || /down
and that doesn't want to work. Anyone have any pointers?