|  |  | @ -267,17 +267,32 @@ advanced_settings() { | 
			
		
	
		
		
			
				
					
					|  |  |  |     fi |  |  |  |     fi | 
			
		
	
		
		
			
				
					
					|  |  |  |   done |  |  |  |   done | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   if GATE1=$(whiptail --inputbox "Set a Gateway IP (mandatory if Static IP was used)" 8 58 --title "GATEWAY IP" 3>&1 1>&2 2>&3); then |  |  |  |   while true; do | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     if [ -z $GATE1 ]; then |  |  |  |     GATE1=$(whiptail --inputbox "Set a Gateway IP (mandatory if Static IP was used)" 8 58 --title "GATEWAY IP" 3>&1 1>&2 2>&3) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     exit_status=$? | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     if [ $exit_status -eq 0 ]; then | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       if [ -z "$GATE1" ]; then | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if [ "$NET" = "dhcp" ]; then | 
			
		
	
		
		
			
				
					
					|  |  |  |           GATE1="Default" |  |  |  |           GATE1="Default" | 
			
		
	
		
		
			
				
					
					|  |  |  |           GATE="" |  |  |  |           GATE="" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           break | 
			
		
	
		
		
			
				
					
					|  |  |  |         else |  |  |  |         else | 
			
		
	
		
		
			
				
					
					|  |  |  |       GATE=",gw=$GATE1" |  |  |  |           whiptail --msgbox "Since a static IP was used, a gateway IP address is mandatory." 8 58 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         fi |  |  |  |         fi | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       else | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if [[ "$GATE1" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]]; then | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           GATE=",gw=$GATE1" | 
			
		
	
		
		
			
				
					
					|  |  |  |           echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}" |  |  |  |           echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           break | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         else | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           whiptail --msgbox "Invalid IP address. Please enter a valid IP address." 8 58 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         fi | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       fi | 
			
		
	
		
		
			
				
					
					|  |  |  |     else |  |  |  |     else | 
			
		
	
		
		
			
				
					
					|  |  |  |       exit-script |  |  |  |       exit-script | 
			
		
	
		
		
			
				
					
					|  |  |  |     fi |  |  |  |     fi | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   done | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   if (whiptail --defaultno --title "IPv6" --yesno "Disable IPv6?" 10 58); then |  |  |  |   if (whiptail --defaultno --title "IPv6" --yesno "Disable IPv6?" 10 58); then | 
			
		
	
		
		
			
				
					
					|  |  |  |     DISABLEIP6="yes" |  |  |  |     DISABLEIP6="yes" | 
			
		
	
	
		
		
			
				
					|  |  | 
 |