2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix erronously dragging in CIDR to IPv4 configuration

This commit is contained in:
Jarrod Johnson 2023-03-14 16:55:20 -04:00
parent 8dc3dfd20c
commit bfe03e6e01

View File

@ -41,12 +41,11 @@ fi
umask $oum
ipv4m=$(grep ^ipv4_method $netcfgfile|awk '{print$2}')
. /scripts/functions
set -x
if [ "$ipv4m" = "dhcp" ]; then
IP=dhcp
configure_networking
elif [ "$ipv4m" = "static" ]; then
v4addr=$(grep ^ipv4_address: $netcfgfile)
v4addr=$(grep ^ipv4_address: $netcfgfile | sed -e 's!/.*!!')
v4addr=${v4addr#ipv4_address: }
v4gw=$(grep ^ipv4_gateway: $netcfgfile)
v4gw=${v4gw#ipv4_gateway: }