-# $OpenBSD: rc.subr,v 1.78 2014/08/11 13:25:23 ajacoutot Exp $
+# $OpenBSD: rc.subr,v 1.79 2014/08/11 20:16:04 kili Exp $
#
# Copyright (c) 2010, 2011, 2014 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
pf_rules ipsec_rules shlib_dirs pkg_scripts \
nfs_server
- for _rcfile in $@; do
+ [ $# -gt 0 ] || set -- /etc/rc.conf /etc.rc.conf.local
+ for _rcfile; do
[[ -f $_rcfile ]] || continue
while IFS=' ' read -r _l; do
[[ $_l == [!#=]*=* ]] || continue
_RC_RUNFILE=${_RC_RUNDIR}/${_name}
# parse /etc/rc.conf{.local} for the daemon_flags
-_rc_do _rc_parse_conf /etc/rc.conf /etc/rc.conf.local
+_rc_do _rc_parse_conf
eval _rcflags=\${${_name}_flags}
eval _rcuser=\${${_name}_user}