Here is a way to get on demand connection work (this would soon go to
wiki as well :)

Alter, 
/usr/lib/python2.6/site-packages/framework/subsystems/ogsmd/modems/abstract/modem.py
as:
--- orig.modem.py       Sat Jul 18 02:13:29 2009
+++ modem.py    Sat Jul 18 02:13:06 2009
@@ -76,6 +76,8 @@
             'proxyarp',
             'replacedefaultroute',
             'usepeerdns',
+            'demand',
+            'idle', '20',
         ]

         self._data["pppd-does-setup-and-teardown"] = True # default
is using connect and disconnect scripts

Have a /var/run/resolv.conf as
nameserver 208.67.222.222
nameserver 208.67.220.220

Update /etc/ppp/ip-down.d/92removedns as:
--- orig.92removedns    Sat Jul 18 02:17:36 2009
+++ 92removedns Sat Jul 18 02:17:41 2009
@@ -1,2 +1,2 @@
 #!/bin/sh -e
-echo nameserver 127.0.0.1 > /etc/resolv.conf
+cat /var/run/resolv.conf > /etc/resolv.conf

Now, just fire up settings panel (need to be done once per boot) and
in connectivity click connect for Gprs...for me it doesn't show
connected anymore...but then I don't really care about that as long as
the connection works :)

--Vikas

Note: We are updating the framework file which can be updated by any
of the frameword update and one need to repeat the update (well..until
a nifty setting comes into setting panel somewhere :)
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to