diff options
author | Natanael Copa <natanael.copa@gmail.com> | 2008-06-20 13:46:10 -0400 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-06-20 13:46:10 -0400 |
commit | 9dcd7a9fed510dacd14e4cf4497e73a98f847fac (patch) | |
tree | b8d3b01590caaa5610edf5b84e3ac3090c191cee /functions | |
parent | fa73767d19ea505ec32533b8856122968207db2f (diff) | |
download | initscripts-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-- | functions | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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: |