On 2022/06/21 07:15, Jason McIntyre wrote: > On Tue, Jun 21, 2022 at 07:07:25AM +0100, Stuart Henderson wrote: > > any comments? does it need a "does not clear things" caveat? ok? > > > > maybe instead of thinking about it as a caveat, we should just say what > happens if you run the script on an interface that is already running?
that's sort-of already in my diff with "apply the configuration from hostname.if", it could go into more details but then it gets messier. basically it's "doesn't clear any existing configuration except for an existing IPv4 address unless all the v4 addresses in the file have the 'alias' flag". > > Index: netstart.8 > > =================================================================== > > RCS file: /cvs/src/share/man/man8/netstart.8,v > > retrieving revision 1.25 > > diff -u -p -r1.25 netstart.8 > > --- netstart.8 29 Nov 2020 20:14:06 -0000 1.25 > > +++ netstart.8 21 Jun 2022 06:05:51 -0000 > > @@ -43,8 +43,7 @@ it performs network initialization. > > .Pp > > The > > .Nm > > -script can also be used to start newly created bridges or interfaces, > > -or reset existing interfaces to their default state. > > +script can also be used to start newly created bridges or interfaces. > > The behaviour of this script is (or can be) controlled to some > > extent by variables defined in > > .Xr rc.conf 8 , > > @@ -91,8 +90,9 @@ and > > After the system is completely initialized, it is possible to start a > > newly created interface or > > .Xr bridge 4 , > > -or reset an existing interface to its default state, by invoking > > -the following, where > > +or apply the configuration from a > > +.Xr hostname.if 5 > > +file to an existing interface, by invoking the following, where > > .Ar foo0 > > is the interface or bridge name: > > .Pp > > >
