Skip to contentSkip to conversation

systemd: add compatibility symlink for 'shutdown'

PATCH New Anssi Hannula 4 participants 4 messages Apr 13, 2018 – May 1, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: add compatibility symlink for 'shutdown'

In addition to the 'halt', 'poweroff', 'reboot' symlinks pointing to systemctl, add 'shutdown'.

---
 package/systemd/systemd.mk | 1 +
 1 file changed, 1 insertion(+)
package/systemd/systemd.mk +1 -0
index 3bc322c..9600fe9 100644
@@ -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
Signature · 1 line
2.8.3
#1 lore raw

PATCH 1/1 systemd: add compatibility symlink for 'shutdown'

Anssi, All,

On 2018-04-13 15:18 +0300, Anssi Hannula spake thusly:

Quoted 4 lines

In addition to the 'halt', 'poweroff', 'reboot' symlinks pointing to systemctl, add 'shutdown'.

Regards,
Yann E. MORIN.

Quoted 19 lines
---
 package/systemd/systemd.mk | 1 +
 1 file changed, 1 insertion(+)
package/systemd/systemd.mk +1 -0
index 3bc322c..9600fe9 100644
@@ -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
Signature · 1 line
2.8.3
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 systemd: add compatibility symlink for 'shutdown'

In reply to Anssi Hannula

Hello,

Quoted 7 lines · Anssi Hannula

In addition to the 'halt', 'poweroff', 'reboot' symlinks pointing to systemctl, add 'shutdown'.

---
 package/systemd/systemd.mk | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com