File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,7 @@ MAX_RETRIES=10 # 10 retries * 3 seconds = 30 seconds tot
4141
4242while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
4343 # Get current IP address for vtnet0
44-
45- # It can happen that dhcpcd at the beggining assigns an APIPA address (169.254.x.x)
46- # Wait for the correct IP assignment
47- IP_ADDR_TO_CHECK=$( ifconfig vtnet0 | grep ' inet ' | awk ' {print $2}' )
48- if ! echo " $IP_ADDR_TO_CHECK " | grep -q " ^169\.254" ; then
49- IP_ADDR=$IP_ADDR_TO_CHECK
50- fi
44+ IP_ADDR=$( ifconfig vtnet0 | grep ' inet ' | awk ' {print $2}' )
5145
5246 if [ -n " $IP_ADDR " ] && [ " $IP_ADDR " != " 0.0.0.0" ]; then
5347 echo " ---> DHCP successful! Acquired IP"
9589# Configure system network settings
9690sysctl -w net.inet.icmp.bmcastecho=1 > /dev/null # Enable ICMP broadcast echo (responds to broadcast pings)
9791
98- echo " ---> Network configuration completed"
92+ echo " ---> Network configuration completed"
You can’t perform that action at this time.
0 commit comments