/etc/apm/suspend.d/linux-wlan-ng-suspend is in linux-wlan-ng 0.2.9+dfsg-6.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/sh
# This script is run on suspend to force a down of any linux-wlan-ng
# iterfaces since the driver does not support suspend.
MODULES='prism2_pci prism2_usb prism2_cs prism2_plx'
rm -f /var/run/linux-wlan-ng.modules
for m in $MODULES; do
if grep -wq $m /proc/modules; then
echo $m >> /var/run/linux-wlan-ng.modules
fi
done
IFACES=$(ifconfig | grep -B 1 ^wlan | cut -d ' ' -f 1)
for iface in $IFACES; do
ifdown $iface || ifconfig $iface down
done
echo "$IFACES" > /var/run/linux-wlan-ng.ifaces
for m in $MODULES; do
rmmod $m 2>/dev/null
done
|