summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi.hannula@bitwise.fi>2018-04-13 15:18:30 +0300
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-04-15 21:12:31 +0200
commit36ed046623129bb879ef50cd40dcc65b27c9da0f (patch)
tree28dda19a581570d219b0f12256e91ab54516770f
parent131cf9bf4b599e71d8621189b2b49fbb11c15649 (diff)
downloadbuildroot-36ed046623129bb879ef50cd40dcc65b27c9da0f.tar.gz
buildroot-36ed046623129bb879ef50cd40dcc65b27c9da0f.zip
systemd: add compatibility symlink for 'shutdown'
In addition to the 'halt', 'poweroff', 'reboot' symlinks pointing to systemctl, add 'shutdown'. Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/systemd/systemd.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index 76b7e8382f..db7fb43636 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -340,6 +340,7 @@ define SYSTEMD_INSTALL_INIT_HOOK
ln -fs ../bin/systemctl $(TARGET_DIR)/sbin/halt
ln -fs ../bin/systemctl $(TARGET_DIR)/sbin/poweroff
ln -fs ../bin/systemctl $(TARGET_DIR)/sbin/reboot
+ ln -fs ../bin/systemctl $(TARGET_DIR)/sbin/shutdown
ln -fs ../../../lib/systemd/system/multi-user.target \
$(TARGET_DIR)/etc/systemd/system/default.target
endef
OpenPOWER on IntegriCloud