aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Anssi Hannula <anssi.hannula@bitwise.fi>2018-04-13 15:18:30 +0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-04-30 22:41:01 +0200
commit178e4f27aec523fc7f6f3ad370cc1c4dc7194feb (patch)
tree5147cad5c08e3b95bb97bcf4947344ad06ef2f85 /package
parent13e633c36bed4a6c6462ee4c9d6aa24a48ab32bb (diff)
downloadbuildroot-178e4f27aec523fc7f6f3ad370cc1c4dc7194feb.tar.gz
buildroot-178e4f27aec523fc7f6f3ad370cc1c4dc7194feb.tar.bz2
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> (cherry picked from commit 36ed046623129bb879ef50cd40dcc65b27c9da0f) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package')
-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 3bc322cd51..9600fe9eb0 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -329,6 +329,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