mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Stop odhcp when IPv6 disabled
This commit is contained in:
		
							parent
							
								
									0ba9863262
								
							
						
					
					
						commit
						4ced939985
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -102,6 +102,7 @@ start_service() {
 | 
			
		|||
	[ "$(uci -q get openmptcprouter.settings.disable_ipv6)" != "1" ] && [ "$(uci -q get network.lan.ipv6)" != "1" ] && set_ipv6_state
 | 
			
		||||
	[ "$(uci -q get openmptcprouter.settings.disable_ipv6)" = "1" ] && {
 | 
			
		||||
		ifdown omr6in4
 | 
			
		||||
		/etc/init.d/odhcpd stop
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	[ "$(ifstatus omr6in4 | jsonfilter -e '@.up' | tr -d '\n')" != "true" ] && ifup omr6in4
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue