summaryrefslogtreecommitdiff
path: root/packages/apmd/files/90-wifi-off
blob: c54936c4befd3bf69dfb27bb61eab1d3de5c10ab (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)'|cut -f 2 -d " "`
if test $wifislot
then
  for slot in $wifislot; do
    pccardctl eject $wifislot
  done
fi