diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2007-11-28 14:47:09 -0600 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2007-11-28 14:50:07 -0600 |
commit | b8e558d5784c8054a91dcefd8495b739a664dbae (patch) | |
tree | 2e27d3c03275b23740e8bc8ac8f541a18f64574c | |
parent | 57879c6d6c51918b8106142e70643b53a9a8c7da (diff) |
Source /etc/rc.d/functions.d/ for additional initscript functions
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-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" |