On Fri, Oct 21, 2022 at 09:30:08AM +0000, Klemens Nanni wrote:
> Using -n does not require an interface:
> 
>       # sh /etc/netstart -n ; echo $?
>       ifconfig lo0 inet 127.0.0.1/8
>       route -qn add -inet6 fe80:: -prefixlen 10 ::1 -reject
>       ...
>       0
> 
> OK?
> 

ok.
jmc

> Index: etc/netstart
> ===================================================================
> RCS file: /cvs/src/etc/netstart,v
> retrieving revision 1.219
> diff -u -p -r1.219 netstart
> --- etc/netstart      3 Jul 2022 12:14:36 -0000       1.219
> +++ etc/netstart      21 Oct 2022 09:27:23 -0000
> @@ -7,7 +7,7 @@ set +o sh
>  
>  # Show usage of the netstart script and exit.
>  usage() {
> -     print -u2 "usage: ${0##*/} [[-n] interface ...]"
> +     print -u2 "usage: ${0##*/} [-n] [interface ...]"
>       exit 1
>  }
>  
> Index: share/man/man8/netstart.8
> ===================================================================
> RCS file: /cvs/src/share/man/man8/netstart.8,v
> retrieving revision 1.27
> diff -u -p -r1.27 netstart.8
> --- share/man/man8/netstart.8 5 Jul 2022 08:14:12 -0000       1.27
> +++ share/man/man8/netstart.8 21 Oct 2022 09:28:36 -0000
> @@ -33,7 +33,8 @@
>  .Nd command script for network startup
>  .Sh SYNOPSIS
>  .Nm /etc/netstart
> -.Op Oo Fl n Oc Ar interface ...
> +.Op Fl n
> +.Op Ar interface ...
>  .Sh DESCRIPTION
>  .Nm
>  is the command script that is invoked by
> 

Reply via email to