diff options
author | Rolf Leggewie <oe-devel@rolf.leggewie.biz> | 2008-01-16 12:44:27 +0000 |
---|---|---|
committer | Rolf Leggewie <oe-devel@rolf.leggewie.biz> | 2008-01-16 12:44:27 +0000 |
commit | 3f6b63a8f4260bc411e29db3ad20d158269e117f (patch) | |
tree | f7483f7ff63f0b237221614c375d60e98e5c6df4 /packages/apmd/apmd-3.2.2 | |
parent | 100dd10ab554d037081f5649c3bfa8e4d6c70c74 (diff) |
apm: turn off wifi cards before suspend so they are fully reloaded upon resume. closes 3664.
Diffstat (limited to 'packages/apmd/apmd-3.2.2')
-rw-r--r-- | packages/apmd/apmd-3.2.2/90-wifi-off | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/apmd/apmd-3.2.2/90-wifi-off b/packages/apmd/apmd-3.2.2/90-wifi-off new file mode 100644 index 0000000000..c54936c4be --- /dev/null +++ b/packages/apmd/apmd-3.2.2/90-wifi-off @@ -0,0 +1,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 |