about summary refs log tree commit diff
path: root/3
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-02-26 17:55:33 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-02-26 17:55:33 +0100
commit54c677a1463ab6577ee812b99adbd8b63840db80 (patch)
tree507ab17edd16a60acbd19b47e3ec9dfeb5ce0754 /3
parent6f79591812e4a8392913ee92a588139d94c58213 (diff)
downloadrunit-void-54c677a1463ab6577ee812b99adbd8b63840db80.tar.gz
runit-void-54c677a1463ab6577ee812b99adbd8b63840db80.tar.xz
runit-void-54c677a1463ab6577ee812b99adbd8b63840db80.zip
3: kexec support
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