sleep mode for kernel 5.7 only

This commit is contained in:
hi80482
2020-07-04 01:51:07 +08:00
committed by GitHub
parent 5d3ec61a68
commit 6e2972786b

View File

@@ -1,3 +1,8 @@
#!/bin/bash
systemctl suspend
kernel=$(uname -r)
if [[ $kernel == *"5.7"* ]]; then
systemctl suspend
fi
exit 0