diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-01-04 22:57:11 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-01-04 22:57:11 +0100 |
commit | ed65f93eb4d23aee3129611c90fa2b81e0cb7f42 (patch) | |
tree | 30e6678478e69d572766ea30790540bf9d3fec52 | |
parent | ede5c81df7ab9403081ba31b8941a5b31b536ba2 (diff) | |
download | mkinitcpio-ed65f93eb4d23aee3129611c90fa2b81e0cb7f42.tar.gz mkinitcpio-ed65f93eb4d23aee3129611c90fa2b81e0cb7f42.tar.xz |
sd-shutdown: add kexec binary if it's available
-rw-r--r-- | install/sd-shutdown | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/install/sd-shutdown b/install/sd-shutdown index 7e86dad..cd4686f 100644 --- a/install/sd-shutdown +++ b/install/sd-shutdown @@ -2,6 +2,10 @@ build() { add_binary /usr/lib/systemd/systemd-shutdown /shutdown + + if type -P kexec >/dev/null; then + add_binary kexec + fi } help() { |