diff --git a/src/etc/rc.d/rc.subr b/src/etc/rc.d/rc.subr index cd083d14..83dc0251 100644 --- a/src/etc/rc.d/rc.subr +++ b/src/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.107 2016/03/26 13:59:36 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.108 2016/04/26 16:39:59 ajacoutot Exp $ # # Copyright (c) 2010, 2011, 2014, 2015 Antoine Jacoutot # Copyright (c) 2010, 2011 Ingo Schwarze @@ -46,13 +46,13 @@ _rc_usage() { _rc_write_runfile() { [ -d ${_RC_RUNDIR} ] || mkdir -p ${_RC_RUNDIR} && \ - print -rn -- "${pexp}" > ${_RC_RUNFILE} -} - -_rc_read_runfile() { - local _new_pexp - [ -f ${_RC_RUNFILE} ] && _new_pexp=$(< ${_RC_RUNFILE}) - [ -n "${_new_pexp}" ] && pexp="${_new_pexp}" + cat >${_RC_RUNFILE} <