[maemo-users] [maemo-users] On-connect event

From: Graham Cobb g+770 at cobb.uk.net
Date: Wed Jan 10 02:45:41 EET 2007
On Tuesday 09 January 2007 21:16, Joel Gwynn wrote:
> Is there a way to create a program that runs automatically every time
> the n770 connects to a wlan?  Where would I begin researching such a
> thing?

You can program the necessary dbus calls yourself.  However, I just created a 
tool to do exactly this.  Take a look at dbus-scripts on 

If you install dbus-scripts you can then create a file in /etc/dbus-scripts.d 
containing the line:

/some/script * * com.nokia.icd status_changed * WLAN_INFRA

and /some/script will be called each time a WLAN event notification is seen on 
the dbus.  In the script, $5 will be the interface name and $7 the new state 


More information about the maemo-users mailing list