[Angstrom-devel] suggestion apm suspend - ifdown wlan, kill wpa, eject card
Paul M
paul.mansfield at gmail.com
Fri Sep 21 18:40:45 CEST 2007
may I humbly submit the following script
/etc/apm/suspend.d/S01_wlan_off
#!/bin/sh
ifdown wlan0
PID=`ps -ef | grep wpa_supplicant | grep -v grep | awk '{print $2}' `
if [ "$PID" != "" ] ; then
kill $PID
fi
for CARD in 0 1
do
pccardctl ident $CARD | grep WLAN > /dev/null
if [ $? -eq 0 ] ; then
pccardctl eject $CARD
fi
done
More information about the Angstrom-distro-devel
mailing list