summaryrefslogtreecommitdiff
path: root/recipes/apmd/files/90-wifi-off
blob: 645484b8cd35a41f25f685f8fefd2f596537dfd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#Author: Rolf Leggewie
#
# turn off wifi cards before suspend so they are fully reloaded upon resume

wifislot = `pccardctl ls|egrep '(hostap|orinoco|libertas)'|cut -f 2 -d " "`
if test $wifislot
then
  for slot in $wifislot; do
    pccardctl eject $wifislot
  done
fi