linux-surface/root/lib/systemd/system-sleep/mwifiex_pcie.sh

20 lines
267 B
Bash
Raw Normal View History

#!/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
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
;;
esac
exit 0