From: tupper Date: Thu, 24 Mar 2022 13:23:20 +0000 (-0400) Subject: fix(network): two bugs which cause minutes long boot times X-Git-Tag: 058~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d6f42c8a4029380c2147018e64fb7ebc9e175e7;p=thirdparty%2Fdracut.git fix(network): two bugs which cause minutes long boot times Caused by unneeded arping to the default gateway. --- diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh index 4b972c780..1c8f31268 100755 --- a/modules.d/40network/net-lib.sh +++ b/modules.d/40network/net-lib.sh @@ -90,7 +90,7 @@ all_ifaces_setup() { get_netroot_ip() { local prefix="" server="" rest="" - splitsep "$1" ":" prefix server rest + splitsep ":" "$1" prefix server rest case $server in [0-9]*\.[0-9]*\.[0-9]*\.[0-9]*) echo "$server" @@ -101,7 +101,8 @@ get_netroot_ip() { } ip_is_local() { - strstr "$(ip route get "$@" 2> /dev/null)" " via " + strstr "$(ip route get "$@" 2> /dev/null)" " via " || return 0 + return 1 } ifdown() {