diff options
-rw-r--r-- | functions | 8 | ||||
-rwxr-xr-x | install.sh | 1 | ||||
-rwxr-xr-x | rc.multi | 2 | ||||
-rwxr-xr-x | rc.single | 2 | ||||
-rwxr-xr-x | rc.sysinit | 2 |
5 files changed, 15 insertions, 0 deletions
@@ -142,5 +142,13 @@ ck_daemon() { return 0 } +source_functions() { + if [ -d /etc/rc.d/functions.d/ ]; then + for f in /etc/rc.d/functions.d/*; do + . $f + done + fi +} + # End of file # vim: set ts=2 noet: @@ -1,6 +1,7 @@ #!/bin/sh install -d -m755 ${DESTDIR}/etc/{rc.d,conf.d} || exit 1 +install -d -m755 ${DESTDIR}/etc/rc.d/functions.d/ || exit 1 for i in inittab rc.conf; do install -D -m644 $i ${DESTDIR}/etc/$i || exit 1 @@ -6,6 +6,8 @@ . /etc/rc.conf . /etc/rc.d/functions +source_functions + # Load sysctl variables if sysctl.conf is present [ -r /etc/sysctl.conf ] && /sbin/sysctl -q -p &>/dev/null @@ -6,6 +6,8 @@ . /etc/rc.conf . /etc/rc.d/functions +source_functions + if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then # Shutdown daemons let i=${#DAEMONS[@]} @@ -6,6 +6,8 @@ . /etc/rc.conf . /etc/rc.d/functions +source_functions + echo " " printhl "Arch Linux $C_OTHER(${C_H2}Core Dump$C_OTHER)\n" printhl "${C_H2}http://www.archlinux.org" |