summaryrefslogtreecommitdiff
path: root/etc/netstart
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2018-03-04 10:12:27 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2018-03-04 10:12:27 +0000
commit6a3c9222345b5807bd5a8d2f47549c5322b80190 (patch)
treeafbe701bcb56b97788b0621e5765841f5fec61d4 /etc/netstart
parent57f1177a0f5972eb86f09b48c2ae6890ff627d0e (diff)
when -n is used, no need to spit out "Missing parameters." before
displaying usage(); ok tb
Diffstat (limited to 'etc/netstart')
-rw-r--r--etc/netstart4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/netstart b/etc/netstart
index 6666815a390..4216e54ada8 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.196 2018/03/03 07:34:19 landry Exp $
+# $OpenBSD: netstart,v 1.197 2018/03/04 10:12:26 jmc Exp $
# Turn off Strict Bourne shell mode.
set +o sh
@@ -214,7 +214,7 @@ shift $((OPTIND-1))
# Option -n is only supported if interface names are specified as parameters.
if $PRINT_ONLY && (($# == 0)); then
- print -u2 "Missing parameters.\n$USAGE"
+ print -u2 "$USAGE"
exit 1
fi