From: Rob Owens on
I need to run a script every time my wireless connection comes up, but
putting one in /etc/network/if-up.d does not work. NetworkManager has
provisions for scripts in /etc/NetworkManager/dispatcher.d, but it looks
like the script that is already there (01ifupdown) is designed to run
everything in if-up.d -- but it's not working.

How can I get a script to run when NetworkManager brings up my wireless
connection?

-Rob


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100621101849.GB30479(a)aurora.owens.net
From: Rob Owens on
On Mon, Jun 21, 2010 at 06:18:49AM -0400, Rob Owens wrote:
> I need to run a script every time my wireless connection comes up, but
> putting one in /etc/network/if-up.d does not work. NetworkManager has
> provisions for scripts in /etc/NetworkManager/dispatcher.d, but it looks
> like the script that is already there (01ifupdown) is designed to run
> everything in if-up.d -- but it's not working.
>
> How can I get a script to run when NetworkManager brings up my wireless
> connection?
>
I'm still not sure why /etc/NetworkManager/dispatcher.d/01ifupdown
doesn't seem to be working, but I solved my problem with this script:

/etc/NetworkManager/dispatcher.d/20speedup

#!/bin/sh

case "$2" in
up)
iwconfig $1 rate 54M
;;
down)
## placeholder
;;
esac


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100622015935.GB2354(a)aurora.owens.net