IIUIC the dropbear starts before the network. Am I right? Why it is so?
Why I care:
I set up dropbear to listen on the lan interface. The issue is that it listens only on static IPv4 address of the lan interface, not on the link-local or global IPv6 addresses. When I restarted dropbear it started to also listen on the IPv6 addresses of the lan interface. I suspect this might be caused by init order. The IPv6 addresses simply do not exits at the time of dropbear start.
Is there a simple way to restart dropbear at the moment when IPv6 is assigned to the lan interface.
Not sure if it's relevant but I have IPv6 connectivity using 6in4 tunnel.
Keep in mind that quite a few interface types (e.g. PPPoE, just to name one example) come up pretty late in the boot process, respectively after it has completed (maybe even hours or days, if there's an issue with the uplink or the cables being disconnected), not static ordering in the world can account for that.
Well, that is to be expected if you mess it up. You’ll break other things, too, although it does depend on what you do (invalid vs incorrect for your goals vs simply not recommended).