maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   Integrating PAN Bluetooth into the Connection Manager (https://talk.maemo.org/showthread.php?t=4059)

phi 2007-01-14 23:43

Integrating PAN Bluetooth into the Connection Manager
 
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/fo...ad.php?t=3402), I've been reading

http://maemo.org/maemowiki/Bluetooth...nectionManager

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

Code:

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
Code:

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?

aflegg 2007-01-15 09:31

Re: Integrating PAN Bluetooth into the Connection Manager
 
Where in the filesystem are your "up" and "down" scripts? I find it hard to believe they're in the root directory (/up). More likely you'll want something like '/usr/local/bin/up' or '/home/user/up'.

Go to the directory where "./up" works and type "pwd" in xterm. That will give you what you need to precede "/up" in your script.

HTH,

Andrew

phi 2007-01-15 15:39

Re: Integrating PAN Bluetooth into the Connection Manager
 
Code:

/ $ pwd
/
/ $ ls -l up*
-rwxr-xr-x    1 root    root          862 Nov  2 11:33 up
/ $

looks like its in the root

aflegg 2007-01-15 16:32

Re: Integrating PAN Bluetooth into the Connection Manager
 
Damn, sorry - can't help then ;-)

A PATH issue perhaps?

phi 2007-01-15 18:02

Re: Integrating PAN Bluetooth into the Connection Manager
 
the original path was

Code:

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
I changed it to be

Code:

PATH=/:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
Does that work? (it didn't for me)

I guess no one has gotten this working yet besides the author of the original wiki


All times are GMT. The time now is 14:11.

vBulletin® Version 3.8.8