aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorNatanael Copa <natanael.copa@gmail.com>2008-06-20 13:46:10 -0400
committerAaron Griffin <aaronmgriffin@gmail.com>2008-06-20 13:46:10 -0400
commit9dcd7a9fed510dacd14e4cf4497e73a98f847fac (patch)
treeb8d3b01590caaa5610edf5b84e3ac3090c191cee /functions
parentfa73767d19ea505ec32533b8856122968207db2f (diff)
downloadinitscripts-9dcd7a9fed510dacd14e4cf4497e73a98f847fac.tar.xz
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 <aaronmgriffin@gmail.com>
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: