also sprach martin f krafft <[email protected]> [2013.04.23.1433 +0200]:
>   ip monitor address | while read n iface proto address rest; do
>     [ $iface = $IFACE ] && [ ${address%/*} = $IF_ADDRESS ] && break;
>   done

This is brittle. I've had it wait endlessly for output from
ip-monitor, e.g. if the NETLINK message is emitted before the hook
runs and then no other messages take place.

Maybe another way would simply be to pull the ip-address output
until the 'tentative' flag is gone?

-- 
 .''`.   martin f. krafft <[email protected]>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Reply via email to