summaryrefslogtreecommitdiffstats
path: root/install/sd-shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'install/sd-shutdown')
-rw-r--r--install/sd-shutdown14
1 files changed, 14 insertions, 0 deletions
diff --git a/install/sd-shutdown b/install/sd-shutdown
new file mode 100644
index 0000000..7e86dad
--- /dev/null
+++ b/install/sd-shutdown
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+build() {
+ add_binary /usr/lib/systemd/systemd-shutdown /shutdown
+}
+
+help() {
+ cat <<HELPEOF
+This hook adds systemd-shutdown to the initramfs. This is only
+if the image is extracted to /run/initramfs before shutdown.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et: