diff options
author | 2016-04-09 08:02:22 +0000 | |
---|---|---|
committer | 2016-04-09 08:02:22 +0000 | |
commit | 13295c1e82cab670f68e656fb8de672d1f2724a7 (patch) | |
tree | ca92ee0da3ca0ad39c041f1586d280f74c1fe5af | |
parent | replace 0xf57ff05f with dmb sy (diff) | |
download | wireguard-openbsd-13295c1e82cab670f68e656fb8de672d1f2724a7.tar.xz wireguard-openbsd-13295c1e82cab670f68e656fb8de672d1f2724a7.zip |
Use builtin.
-rw-r--r-- | usr.sbin/rcctl/rcctl.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh index aadf65e6392..f435e365455 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: rcctl.sh,v 1.92 2016/04/01 08:18:57 ajacoutot Exp $ +# $OpenBSD: rcctl.sh,v 1.93 2016/04/09 08:02:22 ajacoutot Exp $ # # Copyright (c) 2014, 2015 Antoine Jacoutot <ajacoutot@openbsd.org> # Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -27,9 +27,12 @@ _rc_parse_conf usage() { + local _a _i + for _i in ${_rc_actions}; do _a="$(echo -n ${_i}${_a:+|${_a}})"; done + _rc_err \ "usage: rcctl get|getdef|set service | daemon [variable [arguments]] - rcctl [-df] $(echo ${_rc_actions} | tr "[:blank:]" "|") daemon ... + rcctl [-df] ${_a} daemon ... rcctl disable|enable|order [daemon ...] rcctl ls all|failed|off|on|started|stopped" } |