aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorThomas D <whissi@whissi.de>2014-04-16 11:52:26 +0200
committerThomas D <whissi@whissi.de>2015-03-10 17:14:49 +0100
commit791f8201d0318fc9e41c27d698d558cac497e40e (patch)
tree24a982eb63e70705607255e0954849a16fb30cc0 /net
parentnet/iproute2: Add timeout information and timeout progress indicator (diff)
downloadnetifrc-791f8201d0318fc9e41c27d698d558cac497e40e.tar.gz
netifrc-791f8201d0318fc9e41c27d698d558cac497e40e.tar.bz2
netifrc-791f8201d0318fc9e41c27d698d558cac497e40e.zip
net/iproute2: No need to use 'grep' for checking tentative state
We don't need 'grep' to check the tentative state, because the 'ip' utility has a builtin command for that. X-Gentoo-Bug: 488260 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=488260
Diffstat (limited to 'net')
-rw-r--r--net/iproute2.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh
index 8053b2f..0b2a8d6 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -345,8 +345,9 @@ iproute2_pre_start()
_iproute2_ipv6_tentative()
{
- LC_ALL=C ip addr show dev "${IFACE}" | \
- grep -q "^[[:space:]]*inet6 .* tentative"
+ [ -n "$(LC_ALL=C ip -family inet6 addr show dev ${IFACE} tentative)" ] && return 0
+
+ return 1
}
iproute2_post_start()