|
|
2006-10-30
, 20:19
|
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#2
|
| The Following User Says Thank You to fanoush For This Useful Post: | ||
|
|
2006-10-30
, 20:42
|
|
|
Posts: 43 |
Thanked: 2 times |
Joined on Jan 2006
|
#3
|

|
|
2006-10-31
, 03:51
|
|
Posts: 428 |
Thanked: 54 times |
Joined on Mar 2006
@ Washington DC
|
#4
|
|
|
2006-10-31
, 09:38
|
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#5
|
#!/bin/sh
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
sudo gainroot <<EOF
$0 $*
EOF
exit
fi
# real script follows
BTADDR='xx:xx:xx:xx:xx:xx'
IP=192.168.2.2
GW=192.168.2.1
NS=192.168.2.1
IFACE=bnep0
#insmod just to be sure
insmod /mnt/initfs/lib/modules/current/bnep.ko
#start PAN Bluetooth connection
pand --connect $BTADDR
# wait for the interface created by pand
s=60
echo -n "Waiting $s secs for $IFACE"
while [ $s -gt 0 ] ; do
ifconfig $IFACE >/dev/null 2>&1 && break
s=$((s-1))
echo -n "."
sleep 1
done
echo
if ifconfig $IFACE >/dev/null 2>&1 ; then
# bring it up
echo "OK, bringing $IFACE up"
ifconfig $IFACE $IP up
route add default gw $GW
echo "nameserver $NS" >/tmp/resolv.conf.lo
else
echo "Error: $IFACE not available."
fi
#!/bin/sh
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
sudo gainroot <<EOF
$0 $*
EOF
exit
fi
# real script follows
echo -n '' >/tmp/resolv.conf.lo
pand -K
sleep 1
rmmod bnep
|
|
2006-11-02
, 00:20
|
|
Posts: 428 |
Thanked: 54 times |
Joined on Mar 2006
@ Washington DC
|
#6
|
|
|
2006-11-02
, 08:04
|
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#7
|
Did you have to enable R&D mode so the script would work correctly?
|
|
2006-11-02
, 09:07
|
|
|
Posts: 1,463 |
Thanked: 81 times |
Joined on Oct 2005
@ UK
|
#8
|
|
|
2006-11-02
, 10:17
|
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#9
|
|
|
2006-11-02
, 10:45
|
|
Posts: 116 |
Thanked: 5 times |
Joined on Jun 2006
@ Warsaw, Poland
|
#10
|
found this http://eko.one.pl/index.php?page=Nokia770_software , mailed him
Someone else has posted a question about the T-mobile Dash (that has the PAN profile but not the DUN profile) here, but I figure this is the root of the problem.