diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2010-12-27 14:49:06 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2010-12-27 14:49:06 +0000 |
commit | 041db30d134fcbd0b395a7274ad33acfe3134e77 (patch) | |
tree | e8db8e91610e0d309bfb1adc106288371e7df76f /etc/rc.d/rc.subr | |
parent | e4205064acdc46c9f9637c0cfb4dd3d27f4da52a (diff) |
There is no point in calling rc_conf manually from each and every rc
script; instead, rc.subr can call rc_conf itself right after reading in
rc.conf.
from schwarze@ (committing on his behalf)
ok robert@
Diffstat (limited to 'etc/rc.d/rc.subr')
-rw-r--r-- | etc/rc.d/rc.subr | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr index cab274d6406..1a0f46fc257 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -1,6 +1,4 @@ -# $OpenBSD: rc.subr,v 1.15 2010/12/24 10:37:24 ajacoutot Exp $ - -[ -z "${local_rcconf}" ] && . /etc/rc.conf +# $OpenBSD: rc.subr,v 1.16 2010/12/27 14:49:05 ajacoutot Exp $ rc_err() { echo $1 @@ -80,3 +78,6 @@ rc_cmd() { rc_err "usage: $0 {start|check|reload|restart|stop}" esac } + +[ -z "${local_rcconf}" ] && . /etc/rc.conf +rc_conf |