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:
parent
8dc3dfd20c
commit
bfe03e6e01
@ -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: }
|
||||
|
Loading…
Reference in New Issue
Block a user