run script after connection is established
Hi, i wonder if its possible to let NetworkManager run a script after it successfully established a connection to a WLAN. i'm required to login at a intranet website before being able to access the internet. so i would like NetworkManager to run a script that does the login for me when i'm connected to that ESSID. ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: run script after connection is established
Bernhard Valenti [EMAIL PROTECTED] writes: Hi, i wonder if its possible to let NetworkManager run a script after it successfully established a connection to a WLAN. i'm required to login at a intranet website before being able to access the internet. so i would like NetworkManager to run a script that does the login for me when i'm connected to that ESSID. See NetworkManagerDispatcher -derek -- Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory Member, MIT Student Information Processing Board (SIPB) URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH [EMAIL PROTECTED]PGP key available ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: run script after connection is established
On 3/27/07, Bernhard Valenti [EMAIL PROTECTED] wrote: Hi, i wonder if its possible to let NetworkManager run a script after it successfully established a connection to a WLAN. i'm required to login at a intranet website before being able to access the internet. so i would like NetworkManager to run a script that does the login for me when i'm connected to that ESSID. As Derek Atkins point out NetworkManagerDispatcher does this, there is a script submitted by Matt Good that does something similar for ATT hotspots: http://www.darrenalbers.net/wiki/index.php?title=NetworkManagerScripts ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: run script after connection is established
On di, 2007-03-27 at 10:18 -0400, Darren Albers wrote: On 3/27/07, Bernhard Valenti [EMAIL PROTECTED] wrote: Hi, i wonder if its possible to let NetworkManager run a script after it successfully established a connection to a WLAN. i'm required to login at a intranet website before being able to access the internet. so i would like NetworkManager to run a script that does the login for me when i'm connected to that ESSID. As Derek Atkins point out NetworkManagerDispatcher does this, there is a script submitted by Matt Good that does something similar for ATT hotspots: http://www.darrenalbers.net/wiki/index.php?title=NetworkManagerScripts Is there a similar thing for VPN connections? -- Dennis K. Time is an illusion, lunchtime doubly so. signature.asc Description: This is a digitally signed message part ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: run script after connection is established
On 3/27/07, Dennis Kaarsemaker [EMAIL PROTECTED] wrote: On di, 2007-03-27 at 10:18 -0400, Darren Albers wrote: As Derek Atkins point out NetworkManagerDispatcher does this, there is a script submitted by Matt Good that does something similar for ATT hotspots: http://www.darrenalbers.net/wiki/index.php?title=NetworkManagerScripts Is there a similar thing for VPN connections? Not exactly, but there's a DBUS signal on system bus when VPN state changes. Here's the info: path=/org/freedesktop/NetworkManager/VPNConnections interface=org.freedesktop.NetworkManager.VPNConnections member=VPNConnectionStateChange The signal has two arguments, vpn connection name (string) and connection state (uint32), state == 5 means connected, state == 1 means disconnected. Shouldn't be longer than ~10 lines of python. Tambet ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: run script after connection is established
On 3/27/07, Dennis Kaarsemaker [EMAIL PROTECTED] wrote: On di, 2007-03-27 at 18:02 +0300, Tambet Ingo wrote: Not exactly, but there's a DBUS signal on system bus when VPN state changes. Here's the info: path=/org/freedesktop/NetworkManager/VPNConnections interface=org.freedesktop.NetworkManager.VPNConnections member=VPNConnectionStateChange The signal has two arguments, vpn connection name (string) and connection state (uint32), state == 5 means connected, state == 1 means disconnected. Shouldn't be longer than ~10 lines of python. Interesting, that signal didn't show up in dbus-monitor... Does for me when I run 'dbus-monitor --system'. Tambet ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list