![]() |
2010-01-18
, 13:27
|
Posts: 292 |
Thanked: 131 times |
Joined on Dec 2009
|
#12
|
![]() |
2010-01-18
, 13:33
|
|
Posts: 56 |
Thanked: 9 times |
Joined on Sep 2009
@ Philippines
|
#13
|
I've filed a bug on the issue of Connection Manager not recognizing USB networking and the need of extra hacks.
Please vote here, so that we can have proper USB network support:
https://bugs.maemo.org/show_bug.cgi?id=8207
![]() |
2010-01-20
, 03:11
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#14
|
![]() |
2010-02-03
, 09:13
|
Posts: 268 |
Thanked: 304 times |
Joined on Oct 2009
@ Orlando, USA
|
#15
|
![]() |
2010-02-22
, 03:41
|
Posts: 99 |
Thanked: 24 times |
Joined on Feb 2010
|
#16
|
![]() |
2010-02-25
, 07:32
|
Posts: 99 |
Thanked: 24 times |
Joined on Feb 2010
|
#17
|
![]() |
2010-03-10
, 08:19
|
|
Posts: 702 |
Thanked: 334 times |
Joined on Feb 2010
@ Israel.
|
#18
|
Hmm... I found a workaround, based on an idea from this thread:
http://talk.maemo.org/showthread.php?p=395452
The advice there is to connect to some kind of connection and then bring up the USB connection. What this does is to affect the route order. I have an automatic version of this workaround that simply removes the unwanted route.
In my case, there's a WLAN connection I can connect to but it's not reliable for actual use. The script also works with a 3G/EDGE connection.
I created /etc/network/if-up.d/99_fix_routes which will run every time a new interface comes up.
If the USB interface comes up, it removes the default route through the wlan0/gprs0 interfaces (ie. disables traffic through WLAN/EDGE/3G). If some other connection comes up, it pings the USB host and if it's there, it deletes the default route through wlan0/gprs0.Code:#!/bin/sh interface="$2" if [ "$interface" = "usb0" ]; then route delete default wlan0 route delete default gprs0 else if ping -c 1 192.168.2.14 >/dev/null 2>&1; then route delete default wlan0 route delete default gprs0 fi fi exit 0
I don't know why GPRS, EDGE and 3G all use the gprs0 device...
This seems to work fine for me but it is still a workaround. What if there was no phone network or wifi point to connect to but you had a computer using some satelite connection setup for USB networking? What I'm saying is that a proper fix would be better than this workaround.
![]() |
2010-03-11
, 02:43
|
Posts: 99 |
Thanked: 24 times |
Joined on Feb 2010
|
#19
|
Hi,
Should this line give me the argument you are trying to insert into "interface" and throw it into a file if I put it inside the script?
"echo $2 > /etc/network/if-up.d/temp"
cause it gives me an empty temp file, something is not working very well with the script and I am trying to figure out what.
if enter 'ifdown usb0', it gives me an error - /usr/lib/avahi/avahi-daemon-check-dns.sh: line 143: diff: not found.
total newbie here and I would appreciate if anyone here can help me out. thanks a lot!
by the way, I'm trying to access the filesystem through Winscp.
tech trends for every filipino | gadgetpilipinas.net
take a look at my nokia n900 unboxing photos here and unboxing videos here
my n900 review here.