View Single Post
Posts: 107 | Thanked: 4 times | Joined on Apr 2007
#16
hi tom, thanks for the script. so after running that script on the n800, do you just sync normally with the blackjack as if the blackjack is tethering to the pc? do you have to run the script everytime you want to connect to the internet?

ive also read that doing this, opera doesnt work? does all the functionality of the n800 connection work?

thanks!

Originally Posted by tom504 View Post
I thought I read somewhere that the script for the 770 can be used to tether the PAN for the 800 but you don't need to use ins mod line because it was already compiled into the kernel.

Everything I read was that out of the box neither the 770 nor the 800 can tether via PAN without running this script posted on this board.

This is the script I am using w/ the 770:

#!/bin/sh
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11'
BTADDR='Cingular Blackjack Bluetooth Mac Address'
IP=192.168.0.170
GW=192.168.0.1
NS=192.168.0.1
IFACE=bnep0

hciconfig hci0 up

#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