Mark Kettenis <[email protected]> wrote: > > Date: Sat, 6 Mar 2021 16:47:26 +0000 > > From: Stuart Henderson <[email protected]> > > > > there's the case of "don't want to use it _yet_", for example you might > > want to setup umb ready for use but only bring it up manually when > > needed, or you might want to setup pppoe and don't want it to start > > trying to connect immediately at the point it processes "inet" but > > wait until you've sent all of the configuration commands. > > Right. I have a few machines where I have wireless interfaces that I > configure with a nwid and wpakey such that I can bring them up with a > simple "ifconfig bwfm0 up" and deliberately don't bring them up > automatically. > > > > not to mention one command less to run or one less option > > > to use in hostname.if(5), on the other. > > > > For the hostname.if case, it's easy enough, netstart could do "up" > > automatically after configuring if there is no "down" in the file. > > That would break my configurations.
If we are going to do something, it should just be for 'address has been configured' which would include a static ipv4, or static ipv6, or dynamic ipv6, or dynamic ipv4. so, bring those up. If the (tail of) the hostname.if file contains "down", it would come up and quickly go back down. The little flip should not hurt anyone. The question is where do we do this "up" operation. inside netstart? Inside ifconfig? Maybe in the return-side of the ioctl code that sets addresses?
