summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-01-04 22:57:11 +0100
committerDave Reisner <dreisner@archlinux.org>2014-01-04 22:57:11 +0100
commited65f93eb4d23aee3129611c90fa2b81e0cb7f42 (patch)
tree30e6678478e69d572766ea30790540bf9d3fec52 /install
parentede5c81df7ab9403081ba31b8941a5b31b536ba2 (diff)
downloadmkinitcpio-ed65f93eb4d23aee3129611c90fa2b81e0cb7f42.tar.gz
mkinitcpio-ed65f93eb4d23aee3129611c90fa2b81e0cb7f42.tar.xz
sd-shutdown: add kexec binary if it's available
Diffstat (limited to 'install')
-rw-r--r--install/sd-shutdown4
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() {