diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-02-26 17:55:33 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-02-26 17:55:33 +0100 |
commit | 54c677a1463ab6577ee812b99adbd8b63840db80 (patch) | |
tree | 507ab17edd16a60acbd19b47e3ec9dfeb5ce0754 /3 | |
parent | 6f79591812e4a8392913ee92a588139d94c58213 (diff) | |
download | runit-void-54c677a1463ab6577ee812b99adbd8b63840db80.tar.gz runit-void-54c677a1463ab6577ee812b99adbd8b63840db80.tar.xz runit-void-54c677a1463ab6577ee812b99adbd8b63840db80.zip |
3: kexec support
Diffstat (limited to '3')
-rwxr-xr-x | 3 | 8 |
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 |