2017-08-20 23:28:05 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# mwifiex_pcie: handle the flakey wifi
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
pre)
|
2017-08-23 00:10:55 +00:00
|
|
|
ifdown --force wlp3s0 || true
|
2017-08-20 23:28:05 +00:00
|
|
|
modprobe -r mwifiex_pcie
|
|
|
|
;;
|
|
|
|
post)
|
|
|
|
echo 1 > /sys/bus/pci/devices/0000\:02\:00.0/reset
|
|
|
|
modprobe mwifiex_pcie
|
2017-08-23 00:10:55 +00:00
|
|
|
ifup --force wlp3s0 || true
|
2017-08-20 23:28:05 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|