summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-03-11 20:51:24 +0100
committerErich Eckner <git@eckner.net>2022-03-11 20:51:24 +0100
commit24bf05a7dab7ca45c1fd289dcc2aa67a414170f2 (patch)
tree79fe36f7ed8aeaaa937ef91e96375aa39451691c
parent1e69cd1449b855851c862fe1d4475dee96c869a6 (diff)
downloadcheck-kernel-24bf05a7dab7ca45c1fd289dcc2aa67a414170f2.tar.xz
only reboot if not yet shutting down
-rw-r--r--check-kernel.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/check-kernel.in b/check-kernel.in
index 9bfb962..ec76b6d 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
- screen -d -m shutdownasap -r
+ screen -d -m shutdownasap -R
else
- shutdownasap -r
+ shutdownasap -R
fi
fi
else