diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2010-10-27 13:08:54 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2010-10-27 13:08:54 +0000 |
commit | 60cce4caae3b1f15515e8265c2b69febac277b0c (patch) | |
tree | 553807567c3c95011430e96d6864bd67cc24c70b /etc/rc.d | |
parent | 50cdf5e9a81f9f5273aee4f460e3c5b4478107ad (diff) |
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.
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 6ed2ada7342..b09b652107f 100644 --- a/etc/rc.d/rc.subr +++ b/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) |