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

From: Joel Gwynn joelman at gmail.com
Date: Thu Jan 11 03:43:38 EET 2007
Thanks, Graham!  The reason I asked is that I'm a little paranoid
about losing my new friend, either through carelessness or malice, so
I wanted to tell him to run a script whenever he connects to the net;
it sends the IP address and mac address to a CGI script which records
them for future reference.  Thanks to your dbus-scripts package, it
was a pretty simple affair.  I'd post the source, but it's my first
attempt at python, and it's pretty rough around the edges.

Thanks again for the useful package.

On 1/9/07, Graham Cobb <g+770 at cobb.uk.net> wrote:
> 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
> http://www.cobb.uk.net/770/index.html.
> 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
> (IDLE, CONNECTED, etc.).
> Graham
> _______________________________________________
> maemo-users mailing list
> maemo-users at maemo.org
> https://maemo.org/mailman/listinfo/maemo-users

More information about the maemo-users mailing list