summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-05-06 13:59:45 +0200
committerErich Eckner <git@eckner.net>2020-05-06 13:59:45 +0200
commit73c0489a9644e22a54757c6ca7bcc0f05e818913 (patch)
treeebc421d985d36a469f4e0371a6cee69756e31161
parentde62da1ca8626179b2d52464eae55fdee8ab5d86 (diff)
downloadcheck-kernel-73c0489a9644e22a54757c6ca7bcc0f05e818913.tar.xz
check-kernel.in: flip logic whether screen is available
-rw-r--r--check-kernel.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/check-kernel.in b/check-kernel.in
index 823485f..ed819d2 100644
--- a/check-kernel.in
+++ b/check-kernel.in
@@ -163,9 +163,9 @@ else
read s
if [ -z "${s}" ]; then
if command -v screen >/dev/null; then
- shutdownasap -r
- else
screen -d -m 'shutdownasap -r'
+ else
+ shutdownasap -r
fi
fi
else