The bcnm-waitif program

bcnm-waitif waits until a set of network interfaces are in the desired state, or a timeout occurs. Then it exits. It is typically used to avoid race conditions in a service startup sequence.


     bcnm-waitif [ -u | -d ] [ -t timeout ] [ -k kbufsize ] mask interface...

mask meaning

mask is an unsigned integer representing a bitmask for the flags to be tested. If several bits are given, the wanted state is the conjunction of these flags: the condition will be true if all those checks pass.


Exit codes