From b42eea3129c3f23e24a49da6c9c2c9ff6588f5e6 Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Sat, 19 Mar 2011 19:03:58 +0000 Subject: Since we now use pkill -0 for "check", it must be run as root, so remove that test condition. Commented by schwarze@, OK ajacoutot@ --- etc/rc.d/rc.subr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/rc.d') diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr index bdbaace41bc..b62cf54f390 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.27 2011/03/17 16:43:51 robert Exp $ +# $OpenBSD: rc.subr,v 1.28 2011/03/19 19:03:57 ian Exp $ # Default functions and variables used by rc.d(8) scripts. @@ -48,7 +48,7 @@ rc_wait() { } rc_cmd() { - [ $(id -u) -eq 0 -o X"$1" = "Xcheck" ] || \ + [ $(id -u) -eq 0 ] || \ rc_err "$0: need root privileges" eval _enotsup=\${rc_${1}} -- cgit v1.2.3