diff options
author | Bas Ploeger <5904333+basploeger@users.noreply.github.com> | 2022-04-09 23:52:37 +0200 |
---|---|---|
committer | Toyam Cox <aviator45003@gmail.com> | 2023-01-09 13:24:59 -0500 |
commit | 69876b5981557910d05b119c91a492f93016ddf5 (patch) | |
tree | 0a2af0773f2296828be0ffba85d8f46bd54447ed /shutdown.d/90-kexec.sh | |
parent | fa197f0d9e18070b6b28cfdd38f22fbc8cf2f69d (diff) | |
download | runit-void-69876b5981557910d05b119c91a492f93016ddf5.tar.gz runit-void-69876b5981557910d05b119c91a492f93016ddf5.tar.xz runit-void-69876b5981557910d05b119c91a492f93016ddf5.zip |
Split run-level 3 script into separate files.
Diffstat (limited to 'shutdown.d/90-kexec.sh')
-rw-r--r-- | shutdown.d/90-kexec.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shutdown.d/90-kexec.sh b/shutdown.d/90-kexec.sh new file mode 100644 index 0000000..8b3eb93 --- /dev/null +++ b/shutdown.d/90-kexec.sh @@ -0,0 +1,7 @@ +if [ -z "$VIRTUALIZATION" ]; then + if [ -e /run/runit/reboot ] && command -v kexec >/dev/null; then + msg "Triggering kexec..." + kexec -e 2>/dev/null + # not reached when kexec was successful. + fi +fi |