Reply
Thread Tools
Posts: 428 | Thanked: 54 times | Joined on Mar 2006 @ Washington DC
#1
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's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#2
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
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
Posts: 428 | Thanked: 54 times | Joined on Mar 2006 @ Washington DC
#3
Code:
/ $ pwd
/
/ $ ls -l up*
-rwxr-xr-x    1 root     root          862 Nov  2 11:33 up
/ $
looks like its in the root
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#4
Damn, sorry - can't help then ;-)

A PATH issue perhaps?
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
Posts: 428 | Thanked: 54 times | Joined on Mar 2006 @ Washington DC
#5
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
 
Reply


 
Forum Jump


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