MaddogG
|
2010-12-17
, 11:18
|
|
Posts: 234 |
Thanked: 175 times |
Joined on Jun 2010
@ Genova (Italy)
|
#11
|
|
2010-12-17
, 11:40
|
|
Posts: 466 |
Thanked: 180 times |
Joined on Feb 2010
|
#12
|
|
2010-12-17
, 11:41
|
|
Posts: 234 |
Thanked: 175 times |
Joined on Jun 2010
@ Genova (Italy)
|
#13
|
|
2010-12-17
, 13:15
|
Posts: 1,341 |
Thanked: 708 times |
Joined on Feb 2010
|
#14
|
|
2010-12-17
, 13:47
|
|
Posts: 234 |
Thanked: 175 times |
Joined on Jun 2010
@ Genova (Italy)
|
#15
|
|
2010-12-18
, 08:48
|
Posts: 4 |
Thanked: 6 times |
Joined on Dec 2010
@ Cologne
|
#16
|
Doesn't that run that script also when just some other than network device is connected by Bluetooth?
|
2010-12-18
, 10:31
|
Posts: 1,341 |
Thanked: 708 times |
Joined on Feb 2010
|
#17
|
You're right. But I think, calling ifconfig multiple times doesn't hurt though.
# pand -l bnep0 3C:F7:2A:XX:XX:XX PANU
|
2011-04-15
, 12:00
|
Posts: 25 |
Thanked: 5 times |
Joined on Jul 2010
|
#18
|
|
2011-07-11
, 07:27
|
Posts: 9 |
Thanked: 3 times |
Joined on Oct 2010
|
#19
|
ok, one thing is clear. Only after I try to connect over BT with nm-applet to "mymaemoname"_Network, the interfaces become available on both sides. No problem to add few lines to local /etc/network/interfaces (like
allow-hotplug bnep0
iface bnep0 inet static
address 10.10.0.3
netmask 255.255.255.0
# gateway 10.10.0.2
)
I must launch the ifconfig manually on n900.
However - I can have a bnep0 connection for about 30 seconds and after I get disconnected.... nm-applet just rotates ... these 30sec. This I dont know where it comes from, it doesnt happen for debian->BT->n900->mobile broadband.
Next thing: to be able to run dbus-scripts, I realized that it must be installed (from -devel?). I am not going to go that far, I am quite happy with the stability now. Are there any other solutions to respond automatically on n900 side?
-----next edit ------------- sorry ---------------------
after a lot of google ......
nm-applet 0.8, although it says it is ok, it has an issue with PAN
The only question remains, howto set
ifconfig bnep0 up 10.10.0.2
on n900 when PAN is started... without loading stuff from extra-devel.....
thanks, if there is any advice
EVENT="$4" UDI="$5" HALDEV="$(echo $UDI | sed 's#.*/\([0-9a-zA-Z_]*\)#\1#')" LOG="/tmp/tethering.log" echo $* >> $LOG #INETDEV="gprs0" INETDEV="wlan0" RUNFILE="/var/run/tethering.$HALDEV.pid" IFACEFILE="/var/run/tethering.$HALDEV.iface" if [ "$EVENT" = "DeviceAdded" ]; then IFACE=$(hal-get-property --udi $UDI --key net.interface) echo $IFACE >> $LOG # ari: # network-manager-gnome (nm-applet) establishs connection only # when receiving an dhcp reply case $IFACE in bnep0 ) IF_ADDRESS=192.168.253.1 IF_RANGE=192.168.253.254,192.168.253.254 IF_GW=192.168.253.254 ;; * ) exit 0 ;; esac echo "$(date) Enabling tethering on interface $IFACE" >> $LOG echo "$IFACE" > $IFACEFILE ifconfig "$IFACE" "$IF_ADDRESS" route add default gw $IF_GW # ari: to make "dummy network work! /usr/bin/run-standalone.sh dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:DUMMY uint32:0 # ari: to make network-manager-gnome work start-stop-daemon -S -p "$RUNFILE" -m -b -x /usr/sbin/dnsmasq -- -k -I lo -i "$IFACE" -a $IF_ADDRESS -z -F $IF_RANGE,3600 fi if [ "$EVENT" = "DeviceRemoved" ]; then if [ ! -f "$IFACEFILE" ]; then exit 0 fi IFACE="$(cat $IFACEFILE)" rm "$IFACEFILE" echo "$(date) Disabling tethering on device $IFACE" >> $LOG start-stop-daemon -K -p "$RUNFILE" -x /usr/sbin/dnsmasq #ari to remove dummy network /usr/bin/run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true ifconfig "$IFACE" down fi exit 0
The Following User Says Thank You to aldebarab For This Useful Post: | ||
|
2011-12-26
, 18:32
|
Posts: 30 |
Thanked: 4 times |
Joined on Nov 2009
|
#20
|