2018-06-24 17:28:16 +00:00
|
|
|
#!/bin/bash
|
|
|
|
case $1 in
|
|
|
|
pre)
|
|
|
|
# unload the modules before going to sleep
|
2019-02-07 12:58:07 +00:00
|
|
|
systemctl stop NetworkManager.service
|
|
|
|
modprobe -r intel_ipts
|
|
|
|
modprobe -r mei_me
|
|
|
|
modprobe -r mei
|
|
|
|
modprobe -r mwifiex_pcie;
|
|
|
|
modprobe -r mwifiex;
|
|
|
|
modprobe -r cfg80211;
|
2018-06-24 17:28:16 +00:00
|
|
|
;;
|
|
|
|
post)
|
|
|
|
# need to cycle the modules on a resume and after the reset is called, so unload...
|
2019-02-07 12:58:07 +00:00
|
|
|
modprobe -r intel_ipts
|
|
|
|
modprobe -r mei_me
|
|
|
|
modprobe -r mei
|
|
|
|
modprobe -r mwifiex_pcie;
|
|
|
|
modprobe -r mwifiex;
|
|
|
|
modprobe -r cfg80211;
|
2018-06-24 17:28:16 +00:00
|
|
|
# and reload
|
2019-02-07 12:58:07 +00:00
|
|
|
modprobe -i intel_ipts
|
|
|
|
modprobe -i mei_me
|
|
|
|
modprobe -i mei
|
|
|
|
modprobe -i cfg80211;
|
|
|
|
modprobe -i mwifiex;
|
|
|
|
modprobe -i mwifiex_pcie;
|
|
|
|
echo 1 > /sys/bus/pci/rescan
|
|
|
|
systemctl restart NetworkManager.service
|
2018-06-24 17:28:16 +00:00
|
|
|
;;
|
|
|
|
esac
|