summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2014-08-28 07:53:07 +0000
committerajacoutot <ajacoutot@openbsd.org>2014-08-28 07:53:07 +0000
commitdf6abd4f5fc2747ad73fdcb44bb8bcf37cb1bba3 (patch)
tree4d6c51e866477d4ebc1c5996b08364b55d955a9e
parentConsistency in conditionals; no functional change. (diff)
downloadwireguard-openbsd-df6abd4f5fc2747ad73fdcb44bb8bcf37cb1bba3.tar.xz
wireguard-openbsd-df6abd4f5fc2747ad73fdcb44bb8bcf37cb1bba3.zip
Simplify.
-rw-r--r--usr.sbin/rcctl/rcctl.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh
index f61f22bf891..8112972b0b3 100644
--- a/usr.sbin/rcctl/rcctl.sh
+++ b/usr.sbin/rcctl/rcctl.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: rcctl.sh,v 1.30 2014/08/28 06:52:57 ajacoutot Exp $
+# $OpenBSD: rcctl.sh,v 1.31 2014/08/28 07:53:07 ajacoutot Exp $
#
# Copyright (c) 2014 Antoine Jacoutot <ajacoutot@openbsd.org>
#
@@ -32,9 +32,7 @@ usage()
needs_root()
{
- if [ "$(id -u)" -ne 0 ]; then
- _rc_err "${0##*/} $1: need root privileges"
- fi
+ [ "$(id -u)" -ne 0 ] && _rc_err "${0##*/} $1: need root privileges"
}
rcconf_edit_begin()
@@ -263,7 +261,6 @@ while getopts "df" c; do
esac
done
shift $((OPTIND-1))
-
[ $# -gt 0 ] || usage
action=$1