Commit cc88a71d authored by Franco Fichtner's avatar Franco Fichtner

rc: fix drop-in script execution

parent 88c9e391
#!/bin/sh #!/bin/sh
if [ ! -f /etc/rc.conf -o -z "$(ls /etc/rc.conf.d)" ]; then
exit 0
fi
# check which services to enable # check which services to enable
. /etc/rc.conf if [ -f /etc/rc.conf ]; then
for rc_conf in /etc/rc.conf.d/*; . /etc/rc.conf
do fi
. $rc_conf for RC_CONF in $(ls /etc/rc.conf.d); do
. /etc/rc.conf.d/${RC_CONF}
done done
# probe all deamons in /usr/local/etc/rc.d/ # 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