On Mon, 17 Oct 2011 14:39:40 +0200, Florian Philipp wrote: > > Is it up to an init script to do that either? I'd say no. either way > > seems wrong, but having the network config check that the interface is > > available before trying to bring it up seems somewhat less wrong.
> Yes, I intended it to return 0 unconditionally. My reasoning was that > a) trying anyway doesn't hurt. Fair enough. > One thing that I worry more about is that there might be a race > condition. Maybe after loading the module, some time is necessary for > the interface to appear. I ran into an issue like that while playing > around with the zram module. In such a case, the separate init script > has a higher chance to succeed than a bash function called some > milliseconds before the interface initialization. You could add a "sleep 1" to preup(). -- Neil Bothwick By the time you can make ends meet, they move the ends.
signature.asc
Description: PGP signature