Thread
:
Hook when connecting to a wifi network?
View Single Post
Matan
2010-03-04 , 12:10
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#
2
dbus-scripts allows that. Install this package, and create a file called /etc/dbus-scripts.d/wlan containing
/usr/local/bin/myscript * * com.nokia.icd status_changed * WLAN_INFRA CONNECTED
And the script will run whenever you connect to a WLAN (infrastructure mode only not for ad-hoc connections).
You can replace the third star with connection id of your university connection, so the script will only run when connected to university network, not to any network.
There is a GUI for dbus-scripts, if you don't want to create the file by yourself, which is called dbus-scripts-settings.
Both packages are available in extras-devel and in my repository (see my signature).
curl is available in SDK repository, but there is also wget in extras.
__________________
My repository
"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".
No more Nokia devices for me.
Quote & Reply
|
The Following 5 Users Say Thank You to Matan For This Useful Post:
Estel
,
Flandry
,
spooley
,
TA-t3
,
tremby
Matan
View Public Profile
Send a private message to Matan
Find all posts by Matan