|
|
2007-05-08
, 14:53
|
|
Posts: 428 |
Thanked: 54 times |
Joined on Mar 2006
@ Washington DC
|
#2
|
|
|
2007-05-09
, 00:17
|
|
Posts: 5 |
Thanked: 2 times |
Joined on Apr 2007
|
#3
|
| The Following User Says Thank You to treefrog911 For This Useful Post: | ||
|
|
2007-05-09
, 01:33
|
|
Posts: 3,401 |
Thanked: 1,255 times |
Joined on Nov 2005
@ London, UK
|
#4
|
Your link to the Windows Mobile Team blog is useful background info and could be added to #1346 although #1195 will automatically link to #1346 once the latter is a marked as a dupe of the former.
|
|
2007-05-09
, 11:50
|
|
Posts: 5 |
Thanked: 2 times |
Joined on Apr 2007
|
#5
|
|
|
2007-05-10
, 16:32
|
|
Posts: 125 |
Thanked: 1 time |
Joined on Aug 2006
|
#6
|
#!/bin/sh
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11'
BTADDR='00:18:AF:95:15:6E'
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
|
|
2007-05-11
, 13:33
|
|
Posts: 428 |
Thanked: 54 times |
Joined on Mar 2006
@ Washington DC
|
#7
|
|
|
2007-05-11
, 14:50
|
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#8
|
This is my modified PAN script which originated from one of our wonderful members (but embarassed that I forget who and cannotgivethe proper kudos)
#!/bin/sh
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
exec sudo gainroot <<EOF
exec $0 $*
EOF
exit $?
fi
# real script follows
BTADDR='00:16:41:B7:B9:07'
BTNAME="FRANTA"
IP=192.168.2.2
GW=192.168.2.1
NS=10.6.101.1
IFACE=bnep0
#thanks to inz on #maemo IRC channel for this
infoprint(){
dbus-send >/dev/null 2>&1 --system --print-reply --dest=com.nokia.statusbar /com/nokia/statusbar com.nokia.statusbar.system_note_infoprint "string:$*"
}
bnep_start(){
#insmod just to be sure
insmod /mnt/initfs/lib/modules/current/bnep.ko
#start PAN Bluetooth connection
pand --connect $BTADDR -d GN
# 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))
[ -t 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
[ -t 1 ] || infoprint "Connected to $BTNAME"
else
echo "Error: $IFACE not available."
[ -t 1 ] || infoprint "Connection failed"
fi
}
bnep_stop(){
echo "OK, bringing $IFACE down"
echo -n '' >/tmp/resolv.conf.lo
pand -K
sleep 1
rmmod bnep
[ -t 1 ] || infoprint "Disconnected"
}
COMMAND=$1
if [ "$COMMAND" = "" ] ; then
if ifconfig $IFACE >/dev/null 2>&1 ; then
COMMAND=stop
else
COMMAND=start
fi
fi
case $COMMAND in
start) bnep_start ;;
stop) bnep_stop ;;
esac
|
|
2007-05-11
, 16:19
|
|
Posts: 125 |
Thanked: 1 time |
Joined on Aug 2006
|
#9
|
|
|
2007-05-31
, 16:47
|
|
Posts: 125 |
Thanked: 1 time |
Joined on Aug 2006
|
#10
|
#!/bin/sh
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
exec sudo gainroot <<EOF
exec $0 $*
EOF
exit $?
I've got a lovely new Samsung i600 - and would love to use the nice HSDPA 3G on my N800.
EXCEPT, of course, it doesn't do DUN - only PAN. Does anybody know if Nokia are ever going to include this in a firmware update on the N800? Is there anybody at Nokia I can contact about this?
(I know there's a hack available - but I can't imagine it's anything like as easy to use as the built-in DUN on the N800).
Otherwise, I need to make a heartbreaking decision of whether to get rid of the i600 or the N800 :-(
Dave