about summary refs log tree commit diff
path: root/3
diff options
context:
space:
mode:
Diffstat (limited to '3')
-rwxr-xr-x38
1 files changed, 8 insertions, 0 deletions
diff --git a/3 b/3
index ea30b9c..92cfa83 100755
--- a/3
+++ b/3
@@ -47,3 +47,11 @@ if [ -z "$VIRTUALIZATION" ]; then
 fi
 
 sync
+
+if [ -z "$VIRTUALIZATION" ]; then
+    if [ -e /run/runit/reboot ] && command -v kexec >/dev/null; then
+        msg "Triggering kexec...\n"
+        kexec -e 2>/dev/null
+	# not reached when kexec was successful.
+    fi
+fi