systemd: switch to systemd's 'halt', 'poweroff', 'reboot', 'runlevel', 'shutdown' functions

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-04 15:38:57 +02:00
parent 4d0e6078d6
commit f2dc42dc15
2 changed files with 18 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Busybox version: 1.21.1
# Fri Jul 19 02:51:06 2013
# Sun Aug 4 15:13:33 2013
#
CONFIG_HAVE_DOT_CONFIG=y
@ -426,7 +426,7 @@ CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y
# CONFIG_BOOTCHARTD is not set
# CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER is not set
# CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE is not set
CONFIG_HALT=y
# CONFIG_HALT is not set
# CONFIG_FEATURE_CALL_TELINIT is not set
CONFIG_TELINIT_PATH=""
# CONFIG_INIT is not set

View File

@ -98,6 +98,22 @@ pre_make_target() {
}
post_makeinstall_target() {
# provide 'halt', 'shutdown', 'reboot' & co.
mkdir -p $INSTALL/sbin
ln -sf /bin/systemctl $INSTALL/sbin/halt
ln -sf /bin/systemctl $INSTALL/sbin/poweroff
ln -sf /bin/systemctl $INSTALL/sbin/reboot
ln -sf /bin/systemctl $INSTALL/sbin/runlevel
ln -sf /bin/systemctl $INSTALL/sbin/shutdown
ln -sf /bin/systemctl $INSTALL/sbin/telinit
mkdir -p $INSTALL/usr/sbin
ln -sf /bin/systemctl $INSTALL/usr/sbin/halt
ln -sf /bin/systemctl $INSTALL/usr/sbin/poweroff
ln -sf /bin/systemctl $INSTALL/usr/sbin/reboot
ln -sf /bin/systemctl $INSTALL/usr/sbin/runlevel
ln -sf /bin/systemctl $INSTALL/usr/sbin/shutdown
ln -sf /bin/systemctl $INSTALL/usr/sbin/telinit
# remove Network adaper renaming rule, this is confusing
rm -rf $INSTALL/lib/udev/rules.d/80-net-name-slot.rules