Klaus 'mrmoku' Kurzmann wrote:
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 ?
Failed to reproduce - maybe it is fixed.
If I bring ppp0 up and immediately takes it down, this works
as expected. When it went wrong, ppp0 had been up for a day or two.
I'll check later, and will send log output if I see problems again.
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?
Thanks for the tip! "ip" does more than I knew. :-)
Helge Hafting
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user