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).
--
Matan Ziv-Av. [EMAIL PROTECTED]
_______________________________________________
maemo-developers mailing list
[email protected]
https://maemo.org/mailman/listinfo/maemo-developers