From bb62dcba0d8bedfe8863a5de201a7b2f218a4870 Mon Sep 17 00:00:00 2001 From: robert <> Date: Wed, 27 Oct 2010 13:08:53 +0000 Subject: [PATCH] Remove 'status', because 'check' is what is used internally and we don't need two functions doing the same thing, and also allow check to run as non-root. --- src/etc/rc.d/rc.subr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/rc.d/rc.subr b/src/etc/rc.d/rc.subr index 6ed2ada7..b09b6521 100644 --- a/src/etc/rc.d/rc.subr +++ b/src/etc/rc.d/rc.subr @@ -24,12 +24,12 @@ rc_stop() { } rc_cmd() { - [ `id -u` -eq 0 ] || rc_err "$0: need root privileges" + [ `id -u` -eq 0 -o X"$1" = "Xcheck" ] || rc_err "$0: need root privileges" [ -n "$daemon" ] || rc_err "$0: daemon is not set" [ -n "$pexp" ] || pexp="$daemon${daemon_flags:+ $daemon_flags}" case "$1" in - check|status) + check) rc_check ;; start)