Am Samstag, 22. Mai 2010 12:26:35 schrieb Helge Hafting: > The power button dialog now have a slider for bringing GPRS up and down. > This works only halfway. It brings GPRS up,no problem there. > > When I pull the slider back, GPRS is not disconnected though. > ppp0 is still up, with a default route.
hmm... strange. Anything in /var/log/phoneuid.log ? > > Of course, a manual disconnect with "ifconfig ppp0 down" works. > > The reason for disconnecting was to force routing through usb0, which is > faster. There is a better way - give the ppp0 interface a higher metric. > usbb0 already has metric 8, so that faster wifi will be preferred when > available. Unfortunately, I have not found where the ppp0 route is > created, so I cannot just add a metric to some route command. The FR > doesnæ't have the "ifmetric" command, so it seems the metric cannot be > changed later. but it has the ip command... wouldn't 'ip route change ...' work? I _think_ the default route gets set by pppd itself... and a fast look into the manpage doesn't show any option to set the metric. Adding a ip-up script to fix the metric in one way or the other might be the easiest solution... > > Ideally, the GPRS route would be created with a higher metric than usb0. > That way, it won't be necessary to close GPRS when using other faster > networks. Having GPRS on all the time means that some kind of network > always is available - which is convenient. > > Helge Hafting -- Klaus 'mrmoku' Kurzmann _______________________________________________ Shr-User mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-user
