update script for reloading mwifiex_pice module on wake
This commit is contained in:
parent
da241a70cb
commit
a2e1d27509
|
@ -1,19 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
set -e
|
||||||
# mwifiex_pcie: handle the flakey wifi
|
|
||||||
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
|
if [ "$2" = "hibernate" ]; then
|
||||||
case "$1" in
|
case "$1" in
|
||||||
pre)
|
pre) modprobe -r mwifiex_pcie mwifiex ;;
|
||||||
ifdown --force wlp3s0 || true
|
post) modprobe mwifiex_pcie ;;
|
||||||
modprobe -r mwifiex_pcie
|
|
||||||
;;
|
|
||||||
post)
|
|
||||||
echo 1 > /sys/bus/pci/devices/0000\:02\:00.0/reset
|
|
||||||
modprobe mwifiex_pcie
|
|
||||||
ifup --force wlp3s0 || true
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
Loading…
Reference in a new issue