[Wylug-help] Running script on connection to certain wireless network.

Martyn Ranyard ranyardm at gmail.com
Mon May 18 13:52:35 UTC 2009


The best way I can think is to run a script on connection and disconnection
and in it use something like the following :

if iwconfig | grep 'ESSID:"MyNetworkName"; then
  # Do something clever
fi

Hope this helps.
--
Martyn Ranyard

On Sun, May 17, 2009 at 8:58 PM, Timothy Baldwin
<timbaldwin at fastmail.co.uk>wrote:

> I am using Network Manager on Debian sid, and would like to execute a
> script upon connection to and disconnection from my wireless network.
> But not any other network.
>
> Any ideas? Scripts located in /etc/NetworkManager/dispatcher.d will
> apparently be executed on any connections/disconnection.
>
> _______________________________________________
> Wylug-help mailing list
> Wylug-help at wylug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/wylug-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/wylug-help/attachments/20090518/71cafc12/attachment.htm 


More information about the Wylug-help mailing list