[maemo-developers] [maemo-developers] Selecting the dummy internet access in the connection manager from the command line
From: Matan Ziv-Av matan at svgalib.orgDate: Sat Sep 9 23:18:48 EEST 2006
- Previous message: [maemo-developers] Sardine releases feed working again
- Next message: [maemo-developers] Re: Selecting the dummy internet access in the connection manager from the command line
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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. matan at svgalib.org
- Previous message: [maemo-developers] Sardine releases feed working again
- Next message: [maemo-developers] Re: Selecting the dummy internet access in the connection manager from the command line
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]