From 4f90eb9712d030d67a47c9ad6892eec05168562e Mon Sep 17 00:00:00 2001 From: jmc <> Date: Sun, 4 Mar 2018 10:12:26 +0000 Subject: [PATCH] when -n is used, no need to spit out "Missing parameters." before displaying usage(); ok tb --- src/etc/netstart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index 6666815a..4216e54a 100644 --- a/src/etc/netstart +++ b/src/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