[Pkg-utopia-maintainers] Bug#426918: better grep
martin f krafft
madduck at debian.org
Thu May 31 18:39:59 UTC 2007
Package: avahi-autoipd
Version: 0.6.19-2
Severity: normal
From /etc/network/if-up.d/avahi-autoipd:
[ "`ip route show dev $IFACE | grep ^169.254.0.0/16`" ] && exit 0
[ "`/sbin/route -n | grep ^169.254.0.0 | grep $IFACE`" ] && exit 0
uh, how about
ip route show dev $IFACE | grep -q '^169.254.0.0/16[[:space:]]' && exit 0
/sbin/route -n | egrep -q "^169.254.0.0[[:space:]].+${IFACE}$" && exit 0
--
.''`. martin f. krafft <madduck at debian.org>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck - http://debiansystem.info
`- Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (GPG/PGP)
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20070531/768dda9c/attachment.pgp
More information about the Pkg-utopia-maintainers
mailing list