From 9dcd7a9fed510dacd14e4cf4497e73a98f847fac Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 20 Jun 2008 13:46:10 -0400 Subject: Minor simplication for /etc/rc.d/functions.d/ Trivial simplification to make code more readable. Removes one fork so booting should be "faster". Probably not mesureable Signed-off-by: Aaron Griffin --- functions | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'functions') diff --git a/functions b/functions index 6be008f..3355cff 100644 --- a/functions +++ b/functions @@ -165,11 +165,9 @@ stop_daemon() { } #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 +for f in /etc/rc.d/functions.d/*; do + [ -e $f ] && . /etc/rc.d/functions.d/$f +done # End of file # vim: set ts=2 noet: -- cgit v1.2.3