mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Fix mtu check
This commit is contained in:
		
							parent
							
								
									bca4d03429
								
							
						
					
					
						commit
						9edb2e447e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -412,7 +412,7 @@ if [ "$(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.lc)" = "" ] || [ $(($(
 | 
			
		|||
			uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.lc=$(date +"%s")
 | 
			
		||||
		elif [ -z "$(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.mtu)" ]; then
 | 
			
		||||
			[ -n "$serverip" ] && [ "$serverip" != "127.0.0.1" ] && {
 | 
			
		||||
				local mtu=$(omr-mtu $OMR_TRACKER_DEVICE_IP $serverip)
 | 
			
		||||
				local mtu=$(omr-mtu $OMR_TRACKER_DEVICE $serverip)
 | 
			
		||||
				[ -n "$mtu" ] && {
 | 
			
		||||
					uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.mtu=$mtu
 | 
			
		||||
					ip link set dev $OMR_TRACKER_DEVICE mtu $mtu > /dev/null 2>&1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue