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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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