Permalink
Browse files

rc: fix drop-in script execution

  • Loading branch information...
fichtner committed Jun 29, 2015
1 parent 88c9e39 commit cc88a71d78524006f1596a7496881ede58869d73
Showing with 5 additions and 8 deletions.
  1. +5 −8 src/etc/rc.opnsense
View
@@ -1,14 +1,11 @@
#!/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/

0 comments on commit cc88a71

Please sign in to comment.