summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2014-08-28 06:52:58 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2014-08-28 06:52:58 +0000
commit8000f9c16476f0b0088b5ec123b6073d74391042 (patch)
tree598a9a6d7b10786ebd41afd0abac130bc8f5b0d4 /usr.sbin
parente1bf3fdf195975f60382fe66d325b684aa9095ca (diff)
Consistency in conditionals; no functional change.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rcctl/rcctl.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh
index 8966c9b95f5..f61f22bf891 100644
--- a/usr.sbin/rcctl/rcctl.sh
+++ b/usr.sbin/rcctl/rcctl.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: rcctl.sh,v 1.29 2014/08/27 23:50:45 schwarze Exp $
+# $OpenBSD: rcctl.sh,v 1.30 2014/08/28 06:52:57 ajacoutot Exp $
#
# Copyright (c) 2014 Antoine Jacoutot <ajacoutot@openbsd.org>
#
@@ -130,7 +130,7 @@ svc_is_avail()
local _svc=$1
[ -n "${_svc}" ] || return 1
- [ "${_svc}" == "rc.subr" ] && return 1
+ [ "${_svc}" = "rc.subr" ] && return 1
[ -x "/etc/rc.d/${_svc}" ] && return 0
svc_is_special ${_svc}
}
@@ -148,7 +148,7 @@ svc_is_enabled()
local _svc=$1
[ -n "${_svc}" ] || return
- [[ "$(svc_get_flags ${_svc})" != "NO" ]]
+ [ "$(svc_get_flags ${_svc})" != "NO" ]
}
svc_is_special()
@@ -213,12 +213,12 @@ add_flags()
else
# keep our flags since none were given
eval "_flags=\${${_svc}_flags}"
- [[ "${_flags}" = "NO" ]] && unset _flags
+ [ "${_flags}" = "NO" ] && unset _flags
fi
# unset flags if they match the default enabled ones
if [ -n "${_flags}" ]; then
- [[ "${_flags}" = "$(svc_default_enabled_flags ${_svc})" ]] && \
+ [ "${_flags}" = "$(svc_default_enabled_flags ${_svc})" ] && \
unset _flags
fi