[ltp] Disabling WLAN when it's not used
Edi Weitz
linux-thinkpad@linux-thinkpad.org
Tue, 01 Jun 2004 11:49:59 +0200
On Sun, 30 May 2004 22:04:47 +1000, Rene Cunningham <rene@dclabs.com.au> wrote:
> /etc/dhclient-enter-hooks is a bash script which is invoked by
> dhclient. dhclient defines a few variables that can be used within
> this script to do some pretty handy stuff.
>
> Your /etc/dhclient-enter-hooks script may look something like
>
> #!/bin/sh
>
> if [ x$reason = xFAIL ] || [ x$reason = xTIMEOUT ]; then
> /etc/init.d/pcmcia stop
> fi
>
> man dhclient-script, for more information ofcourse :)
Thanks for the hint, I'll look into this. Stopping PCMCIA won't help,
though, as the card is a built-in mini-PCI card.
Thanks,
Edi.