From: David Tardon Date: Tue, 9 Feb 2021 15:46:07 +0000 (+0100) Subject: 35network-legacy: discard pointless RTNETLINK message X-Git-Tag: 052~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c46ed697a20798c09ead362443691d810e122996;p=thirdparty%2Fdracut.git 35network-legacy: discard pointless RTNETLINK message This command prints RTNETLINK answers: Network is unreachable to stderr if IP is not assigned yet, but that's the thing we are checking for, so there's no point in showing the message. --- diff --git a/modules.d/35network-legacy/ifup.sh b/modules.d/35network-legacy/ifup.sh index e5690dbec..3509d7a95 100755 --- a/modules.d/35network-legacy/ifup.sh +++ b/modules.d/35network-legacy/ifup.sh @@ -135,7 +135,7 @@ do_static() { return 1 fi - ip route get "$ip" | { + ip route get "$ip" 2>/dev/null | { read a rest if [ "$a" = "local" ]; then warn "Not assigning $ip to interface $netif, cause it is already assigned!"