Merge pull request #13 from StollD/feature/sleep-without-systemd

Remove hard systemd dependency from the sleep script
This commit is contained in:
Maximilian Luz 2019-10-01 15:40:54 +02:00 committed by GitHub
commit 063d65b985
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,11 @@ case $1 in
modprobe mwifiex;
modprobe mwifiex_pcie;
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