Bug#390884: [pkg-wpa-devel] Bug#390884: doesn't work well with
acpi-support
Kel Modderman
kelmo at kanotixguide.org
Fri Oct 13 01:41:03 UTC 2006
On Monday 09 October 2006 04:36, Per Olofsson wrote:
> > You mentioned that you gave it a go, did you have any preliminary code?
> > (I don't care if its ugly/non-working, it may give a hint to what is
> > required).
>
> I think something like this for the file
> /etc/acpi/suspend.d/55-down-interfaces.sh:
>
> --- 55-down-interfaces.sh~ 2006-10-08 20:27:04.000000000 +0200
> +++ 55-down-interfaces.sh 2006-10-08 20:33:13.000000000 +0200
> @@ -12,7 +12,11 @@
>
> # And shut them down
> for x in $INTERFACES; do
> - ifdown $x;
> + if [ -e /var/run/wpa_supplicant/$x ]; then
> + wpa_action $x stop;
> + else
> + ifdown $x;
> + fi
> ifconfig $x down;
> done
Try something like:
for x in $INTERFACES; do
if test -x /sbin/wpa_action && \
wpa_action $x check; then
wpa_action $x stop
else
ifdown $x
fi
done
Kel.
More information about the Pkg-wpa-devel
mailing list