[maemo-developers] [maemo-developers] Re: Selecting the dummy internet access in the connection manager from the command line

From: Rainer Dorsch rdorsch at web.de
Date: Sun Sep 10 01:09:07 EEST 2006
Matan,

wow that is wonderful news. Works very well.

I try to add that to the wiki page about bluetooth IP networks.

Many thanks,
Rainer

Am Samstag, 9. September 2006 22:18 schrieben Sie:
> > An even better alternative is to call the script from the connection
> > manager, but I think it does not support that and there is no source
> > code for it. So that sounds hard.
>
> It is not really hard.
>
> Create the dummy connection with the name you want (DEFAULT, for
> example).
>
> Get the program dbus-s from:
> http://www.arava.co.il/matan/770/dbus-s
>
> Create an executable file called /usr/bin/dbus-script containing
> something like:
>
> #!/bin/sh
> #echo $1 $2 $3 $4 $5 $6 $7 >> /tmp/l
> [ "$3" =  "com.nokia.icd" ] || exit 0
> [ "$5" != "DEFAULT" -o "$7" != "CONNECTED" ] || /usr/bin/connect.script
> [ "$5" != "DEFAULT" -o "$7" != "IDLE" ] || /usr/bin/disconnect.script
>
>
> And finally make sure that
> dbus-s --system
> is running (for example, by running it from startup scripts).
>
> Then the script /usr/bin/connect.script will run whenever the DEFAULT
> network is connected (in practice, when it is selected in the connection
> manager).

--
Rainer Dorsch
Alzentalstr. 28
D-71083 Herrenberg
07032-919495
jabber: rdorsch at jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/

More information about the maemo-developers mailing list