commit:     fae92169597088759a3933fdf5a0766a80831f12
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 18 17:26:11 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Jul 18 17:26:11 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=fae92169

initrd.scripts: ipv6_tentative(): Hide errors

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 defaults/initrd.scripts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 5e1029c..cdd5a2e 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1780,7 +1780,7 @@ kill_network() {
 }
 
 ipv6_tentative() {
-       if ip -family inet6 addr show dev "${GK_NET_IFACE}" | grep -q " 
tentative "
+       if ip -family inet6 addr show dev "${GK_NET_IFACE}" 2>/dev/null | grep 
-q " tentative "
        then
                return 0
        else

Reply via email to