diff options
author | Ian Darwin <ian@cvs.openbsd.org> | 2011-03-19 19:03:58 +0000 |
---|---|---|
committer | Ian Darwin <ian@cvs.openbsd.org> | 2011-03-19 19:03:58 +0000 |
commit | b42eea3129c3f23e24a49da6c9c2c9ff6588f5e6 (patch) | |
tree | 5e257eeb2dcb36a08ff1474187d3dca4345e4777 /etc/rc.d | |
parent | 135236748655c2a6e90d0b2b8324ff15bafd64ac (diff) |
Since we now use pkill -0 for "check", it must be run as root,
so remove that test condition. Commented by schwarze@, OK ajacoutot@
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/rc.subr | 4 |
1 files changed, 2 insertions, 2 deletions
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}} |