View Single Post
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#156
Originally Posted by youth View Post
I tried it again enabling the connection first & this is what I get & it never prompts me for a connection to choose. Internet browsing within the phone works.

Code:
Nokia-N900-42-11:/home/user# echo "/home/user/bluetooth-pan-tethering.sh" | gainroot
Root shell enabled
+ IP_ADDR=192.168.3.1
+ NETMASK=255.255.255.0
+ DHCP_RANGE=192.168.3.100,192.168.3.127
+ RUNFILE=/var/run/btpan_tethering.pid
+ DNSMASQ=/usr/sbin/dnsmasq
+ modprobe ipt_MASQUERADE
+ iptables -F
+ iptables -t nat -F
+ iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE
+ echo 1
+ ifconfig bnep0 down
ifconfig: SIOCGIFFLAGS: No such device
+ ifconfig bnep0 up
ifconfig: SIOCGIFFLAGS: No such device
+ ifconfig bnep0 192.168.3.1 netmask 255.255.255.0 up
ifconfig: SIOCSIFADDR: No such device
+ start-stop-daemon -S -p /var/run/btpan_tethering.pid -m -b -x /usr/sbin/dnsmasq -- -k -I lo -z -a 192.168.3.1 -F 192.168.3.100,192.168.3.127 -b
+ run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:Bluetooth PAN Activated
Nokia-N900-42-11:/home/user# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 U 0 0 0 gprs0
Nokia-N900-42-11:/home/user#
I spot errors in creating the device bnep0 which did not happen in your previous output you posted at #149: http://talk.maemo.org/showpost.php?p...&postcount=149

In #149:
Code:
+ ifconfig bnep0 down
+ ifconfig bnep0 up
+ ifconfig bnep0 192.168.3.1 netmask 255.255.255.0 up
In your last post:
Code:
+ ifconfig bnep0 down
ifconfig: SIOCGIFFLAGS: No such device
+ ifconfig bnep0 up
ifconfig: SIOCGIFFLAGS: No such device
+ ifconfig bnep0 192.168.3.1 netmask 255.255.255.0 up
ifconfig: SIOCSIFADDR: No such device
Now the gprs0 appreas in the routing table while bnep0 is missing.

What have you changed since #149? Say, have you paired up the devices first?

Last edited by 9000; 2011-06-20 at 04:12.