aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions8
1 files changed, 3 insertions, 5 deletions
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: