Skip to content

Commit

Permalink
fix(40network): consistent use of "$gw" for gateway
Browse files Browse the repository at this point in the history
Replace wrong use of $gateway with $gw.

Signed-off-by: Martin Wilck <mwilck@suse.com>
  • Loading branch information
mwilck authored and johannbg committed Feb 2, 2022
1 parent fe8df02 commit 3f2c76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/40network/net-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f2c76b

Please sign in to comment.