Merge pull request #13 from StollD/feature/sleep-without-systemd
Remove hard systemd dependency from the sleep script
This commit is contained in:
commit
063d65b985
|
@ -39,7 +39,11 @@ case $1 in
|
||||||
modprobe mwifiex;
|
modprobe mwifiex;
|
||||||
modprobe mwifiex_pcie;
|
modprobe mwifiex_pcie;
|
||||||
echo 1 > /sys/bus/pci/rescan
|
echo 1 > /sys/bus/pci/rescan
|
||||||
systemctl restart NetworkManager.service
|
|
||||||
|
if [ -x "$(command -v nmcli)" ] && [ "$(nmcli net)" = "enabled" ]; then
|
||||||
|
nmcli net off
|
||||||
|
nmcli net on
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue