Browse Source

After discussing with Ingo and Antoine we decided to rename

files to not include -. This way we can easily overwrite
daemon flags from rc.conf.local.
OPENBSD_4_9
robert 14 years ago
parent
commit
d8008fb0fb
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      src/etc/rc.d/rc.subr

+ 10
- 2
src/etc/rc.d/rc.subr View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.subr,v 1.6 2010/10/28 15:36:37 robert Exp $
# $OpenBSD: rc.subr,v 1.7 2010/10/28 21:03:33 robert Exp $
[ -z "${local_rcconf}" ] && . /etc/rc.conf
@ -26,8 +26,16 @@ rc_stop() {
}
rc_cmd() {
[ `id -u` -eq 0 -o X"$1" = "Xcheck" ] || rc_err "$0: need root privileges"
_name=`basename $0`
eval _rcflags=\${${_name}_flags}
echo $_rcflags
exit
[ `id -u` -eq 0 -o X"$1" = "Xcheck" ] || \
rc_err "$0: need root privileges"
[ -n "${daemon}" ] || rc_err "$0: daemon is not set"
[ -n "${_rcflags}" ] && daemon_flags=${_rcflags}
[ -n "${pexp}" ] || pexp="${daemon}${daemon_flags:+ ${daemon_flags}}"
case "$1" in


Loading…
Cancel
Save