From b6d8d015ab3651f64c36027f634e3cb4bc6b2505 Mon Sep 17 00:00:00 2001 From: ajacoutot <> Date: Sun, 28 May 2017 08:38:10 +0000 Subject: [PATCH] Drop useless lines continuation; no functional change. --- src/etc/rc.d/rc.subr | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/etc/rc.d/rc.subr b/src/etc/rc.d/rc.subr index 71caf579..0cf22716 100644 --- a/src/etc/rc.d/rc.subr +++ b/src/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.120 2017/05/27 19:55:48 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.121 2017/05/28 08:38:10 ajacoutot Exp $ # # Copyright (c) 2010, 2011, 2014-2017 Antoine Jacoutot # Copyright (c) 2010, 2011 Ingo Schwarze @@ -45,7 +45,7 @@ _rc_usage() { } _rc_write_runfile() { - [ -d ${_RC_RUNDIR} ] || mkdir -p ${_RC_RUNDIR} && \ + [ -d ${_RC_RUNDIR} ] || mkdir -p ${_RC_RUNDIR} && cat >${_RC_RUNFILE} </dev/null; then \ + if type rc_post >/dev/null; then _rc_do rc_post || _rc_exit failed fi _rc_do _rc_rm_runfile @@ -249,7 +249,7 @@ rc_cmd() { _rc_exit ok ;; restart) - $0 ${_RC_DEBUG} ${_RC_FORCE} stop && \ + $0 ${_RC_DEBUG} ${_RC_FORCE} stop && $0 ${_RC_DEBUG} ${_RC_FORCE} start ;; *) @@ -285,14 +285,14 @@ eval _rcuser=\${${_name}_user} eval _rctimeout=\${${_name}_timeout} # set default values; duplicated in rcctl(8) -getcap -f /etc/login.conf ${_name} 1>/dev/null 2>&1 && \ - daemon_class=${_name} || daemon_class=daemon +getcap -f /etc/login.conf ${_name} 1>/dev/null 2>&1 && daemon_class=${_name} || + daemon_class=daemon [ -z "${daemon_rtable}" ] && daemon_rtable=0 [ -z "${daemon_user}" ] && daemon_user=root [ -z "${daemon_timeout}" ] && daemon_timeout=30 # use flags from the rc.d script if daemon is not enabled -[ -n "${_RC_FORCE}" -o "$1" != "start" ] && [ X"${_rcflags}" = X"NO" ] && \ +[ -n "${_RC_FORCE}" -o "$1" != "start" ] && [ X"${_rcflags}" = X"NO" ] && unset _rcflags [ -n "${_rcflags}" ] && daemon_flags=${_rcflags} @@ -310,5 +310,4 @@ readonly daemon_class unset _rcflags _rcrtable _rcuser _rctimeout pexp="${daemon}${daemon_flags:+ ${daemon_flags}}" rcexec="su -l -c ${daemon_class} -s /bin/sh ${daemon_user} -c" -[ "${daemon_rtable}" -eq 0 ] || \ - rcexec="route -T ${daemon_rtable} exec ${rcexec}" +[ "${daemon_rtable}" -eq 0 ] || rcexec="route -T ${daemon_rtable} exec ${rcexec}"