From: Martin Wilck Date: Wed, 19 Jan 2022 09:37:19 +0000 (+0100) Subject: fix(40network): consistent use of "$gw" for gateway X-Git-Tag: 056~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f2c76bb1456941a28d3333569d2bf18f8624617;p=thirdparty%2Fdracut.git fix(40network): consistent use of "$gw" for gateway Replace wrong use of $gateway with $gw. Signed-off-by: Martin Wilck --- diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh index 54bb6775e..a294a3902 100755 --- a/modules.d/40network/net-lib.sh +++ b/modules.d/40network/net-lib.sh @@ -295,7 +295,7 @@ ibft_to_cmdline() { # skip not assigned ip adresses [ "$ip" = "0.0.0.0" ] && continue [ -e "${iface}"/gateway ] && read -r gw < "${iface}"/gateway - [ "$gateway" = "0.0.0.0" ] && unset gateway + [ "$gw" = "0.0.0.0" ] && unset gw [ -e "${iface}"/subnet-mask ] && read -r mask < "${iface}"/subnet-mask [ -e "${iface}"/prefix-len ] && read -r prefix < "${iface}"/prefix-len [ -e "${iface}"/primary-dns ] && read -r dns1 < "${iface}"/primary-dns