Browse Source

fix(40network): consistent use of "$gw" for gateway

Replace wrong use of $gateway with $gw.

Signed-off-by: Martin Wilck <mwilck@suse.com>
master
Martin Wilck 2 years ago committed by Jóhann B. Guðmundsson
parent
commit
3f2c76bb14
  1. 2
      modules.d/40network/net-lib.sh

2
modules.d/40network/net-lib.sh

@ -295,7 +295,7 @@ ibft_to_cmdline() { @@ -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

Loading…
Cancel
Save