From 63db98c2a8e256f9219c5c6501b40846040bf089 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Thu, 22 May 2008 13:02:55 -0400 Subject: Remove source_functions in favor of always sourcing the dir This is an obvious oversight on my part - this change allows the overridden functions to work in daemon scripts and anything else that uses /etc/rc.d/functions by itself. Signed-off-by: Aaron Griffin --- functions | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'functions') diff --git a/functions b/functions index 4a4b05a..63999a1 100644 --- a/functions +++ b/functions @@ -151,13 +151,12 @@ ck_depends() { done } -source_functions() { - if [ -d /etc/rc.d/functions.d/ ]; then - for f in $(/bin/ls /etc/rc.d/functions.d/); do - . /etc/rc.d/functions.d/$f - done - fi -} +#Source additional functions at the end to allow overrides +if [ -d /etc/rc.d/functions.d/ ]; then + for f in $(/bin/ls /etc/rc.d/functions.d/); do + . /etc/rc.d/functions.d/$f + done +fi # End of file # vim: set ts=2 noet: -- cgit v1.2.3