about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp David <pd@3b.pm>2022-07-31 16:27:01 +0200
committerclassabbyamp <5366828+classabbyamp@users.noreply.github.com>2023-04-13 15:43:50 -0400
commit79675bcb1a3c926f30415f8fa30c8bee8c9360b9 (patch)
tree58fe17c50f3f061989003c7f56b95d0e3ccd12c9
parent1d453575469f396e1ca8dd5cc645e1af4e18dc8e (diff)
downloadrunit-void-79675bcb1a3c926f30415f8fa30c8bee8c9360b9.tar.gz
runit-void-79675bcb1a3c926f30415f8fa30c8bee8c9360b9.tar.xz
runit-void-79675bcb1a3c926f30415f8fa30c8bee8c9360b9.zip
shutdown.d/90-kexec.sh: only try to run kexec on reboot
-rw-r--r--shutdown.d/90-kexec.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/shutdown.d/90-kexec.sh b/shutdown.d/90-kexec.sh
index 8b3eb93..62487f9 100644
--- a/shutdown.d/90-kexec.sh
+++ b/shutdown.d/90-kexec.sh
@@ -1,5 +1,5 @@
 if [ -z "$VIRTUALIZATION" ]; then
-    if [ -e /run/runit/reboot ] && command -v kexec >/dev/null; then
+    if [ -x /run/runit/reboot ] && command -v kexec >/dev/null; then
         msg "Triggering kexec..."
         kexec -e 2>/dev/null
         # not reached when kexec was successful.