mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
systemd: switch to systemd's 'halt', 'poweroff', 'reboot', 'runlevel', 'shutdown' functions
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
4d0e6078d6
commit
f2dc42dc15
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user