On Fri, Jul 13, 2007 at 12:16:27AM +0000, Thorsten Glaser wrote:
> Phil Sutter dixit:
>
> >On Thu, Jul 12, 2007 at 05:01:31PM +0200, Christian Fischer wrote:
> >> But as long as the line
> >> ip addr delete 192.168.1.1/24 broadcast 192.168.1.255 dev eth0
> >> is part of /etc/preinit
> >> ip link set down dev eth0
> >> should also be a part of this file,
> >
> >Full ACK.
>
> In this case, both link-up and link-down should.

Ok. I suddenly realized I'm talking complete bullshit. Actually, netboot
is an argument against running 'ip link down' from /etc/preinit, as it
causes just the same as removing the wrong IP address.

The 'ip link set up dev eth0' is there for all cases where netboot
doesn't apply, as initially the interface is still down at this point.
But NOT with netboot, as the kernel did set it up already.

So what's the deal? "Never remove link while booting" (And hoping, any
address flushes don't appear and udhcpc invocation goes well)?

In general I vote for not configuring any interfaces in netboot setups
at all, as it doesn't really make sense. This way /etc/preinit could
stay as it is, and fwifupdown do with the link what it wants to.

Better ideas?
Phil
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to