Browse Source

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@
OPENBSD_4_9
ajacoutot 14 years ago
parent
commit
ff4f8c6619
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/etc/rc.d/rc.subr

+ 4
- 3
src/etc/rc.d/rc.subr View File

@ -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() { rc_err() {
echo $1 echo $1
@ -80,3 +78,6 @@ rc_cmd() {
rc_err "usage: $0 {start|check|reload|restart|stop}" rc_err "usage: $0 {start|check|reload|restart|stop}"
esac esac
} }
[ -z "${local_rcconf}" ] && . /etc/rc.conf
rc_conf

Loading…
Cancel
Save