GPRS / Wifi

arne anka openmoko at
Mon Aug 11 11:52:52 CEST 2008

> If I take a concrete example : my ~/.wgetrc.
> i wan't to connect to internet
> - from home, with wifi, I have direct access to internet.
> - from work, with wifi, I must use a proxy.
> - from outside, I must use GPRS with another proxy.
> It's easy to make a script that will update .wgetrc.

why would you do that?
every attempt to connect to the net is directed to the currently defined  
gateway -- no matter if there's wifi or gprs in use. all programs  
connecting to the net should be absolutely agnostic to the kind of  
connection you use.
for the proxy: as someone mentioned before -- there is a global variable  
defining the proxy and this variable is checked for automatically.

in your up-/down-scripts you simply can set/unset the proxy variablke  
depending of the interface used.

none of your apps, be it wget or a browser, should care for that kind of  

More information about the community mailing list