mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user