On Thu, Dec 01, 2022 at 06:53:30PM -0800, Andrew Hewus Fresh wrote:
> How about this adjustment to the man page?

Reads fine, although it doesn't explain which file type wins.

> 
> Index: share/man/man5/hostname.if.5
> ===================================================================
> RCS file: /cvs/src/share/man/man5/hostname.if.5,v
> retrieving revision 1.79
> diff -u -p -r1.79 hostname.if.5
> --- share/man/man5/hostname.if.5      26 Jul 2022 00:36:54 -0000      1.79
> +++ share/man/man5/hostname.if.5      2 Dec 2022 02:51:27 -0000
> @@ -40,8 +40,10 @@
>  The
>  .Nm hostname.*\&
>  files contain information regarding the configuration of each network 
> interface.
> -One file should exist for each interface that is to be configured, such as
> -.Pa hostname.fxp0
> +One file should exist for each interface that is to be configured.

If you say "Exactly one" file, it'd be clear that there must not be both
.MAC and .if for one interface.

This way, I think, we're good with leaving out the implementation detail
of .MAC overwriting .if -- afterall, users are told not to have multiple
files per interface.

> +The interface can be referenced by name or lladdr, such as
> +.Pa hostname.fxp0 ,
> +.Pa hostname.00:00:5e:00:53:af ,
>  or
>  .Pa hostname.bridge0 .
>  A configuration file is not needed for lo0.
> 

Reply via email to