Commit cc88a71d authored by Franco Fichtner's avatar Franco Fichtner

rc: fix drop-in script execution

parent 88c9e391
#!/bin/sh
if [ ! -f /etc/rc.conf -o -z "$(ls /etc/rc.conf.d)" ]; then
exit 0
fi
# check which services to enable
. /etc/rc.conf
for rc_conf in /etc/rc.conf.d/*;
do
. $rc_conf
if [ -f /etc/rc.conf ]; then
. /etc/rc.conf
fi
for RC_CONF in $(ls /etc/rc.conf.d); do
. /etc/rc.conf.d/${RC_CONF}
done
# probe all deamons in /usr/local/etc/rc.d/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment