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

From: Matan Ziv-Av matan at svgalib.org
Date: Sat Sep 9 23:18:48 EEST 2006
> 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 

Get the program dbus-s from:

Create an executable file called /usr/bin/dbus-script containing 
something like:

#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 

Matan Ziv-Av.                         matan at svgalib.org

More information about the maemo-developers mailing list