mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 17:04:52 +08:00 
			
		
		
		
	Rem
This commit is contained in:
		
							parent
							
								
									d20701751e
								
							
						
					
					
						commit
						ec03018762
					
				@ -354,13 +354,13 @@ update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy > /dev/null
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
GATEWAY=$(ip r | grep default | awk '{print $3}')
 | 
					GATEWAY=$(ip r | grep default | awk '{print $3}')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [[ "$GATEWAY" == "172."* ]]; then
 | 
					#if [[ "$GATEWAY" == "172."* ]]; then
 | 
				
			||||||
  # Configuration for static IP
 | 
					  # Configuration for static IP
 | 
				
			||||||
  #configureNAT
 | 
					  #configureNAT
 | 
				
			||||||
else
 | 
					#else
 | 
				
			||||||
  # Configuration for DHCP IP
 | 
					  # Configuration for DHCP IP
 | 
				
			||||||
  #configureDHCP
 | 
					  #configureDHCP
 | 
				
			||||||
fi
 | 
					#fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Get all interfaces:
 | 
					# Get all interfaces:
 | 
				
			||||||
  local_ifaces=($(ip link show | grep -v noop | grep state | grep -v LOOPBACK | awk '{print $2}' | tr -d : | sed 's/@.*$//'))
 | 
					  local_ifaces=($(ip link show | grep -v noop | grep state | grep -v LOOPBACK | awk '{print $2}' | tr -d : | sed 's/@.*$//'))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user