aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsleepwalk3
1 files changed, 1 insertions, 2 deletions
diff --git a/sleepwalk b/sleepwalk
index 5f9065e..03e139d 100755
--- a/sleepwalk
+++ b/sleepwalk
@@ -78,8 +78,7 @@ while :
do
if can_suspend
then
- rtcwake -m no -s 600 || :
- systemctl suspend
+ (rtcwake -m no -s 600 && systemctl suspend) || :
if can_suspend
then