> 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 information. _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community