odhcpd: enable ipv6 server mode only when it is supported
Signed-off-by: Rosy Song <rosysong@rosinson.com>
(backported from 918ec4d549)
			
			
This commit is contained in:
		
				
					committed by
					
						
						Jo-Philipp Wich
					
				
			
			
				
	
			
			
			
						parent
						
							15a023a458
						
					
				
				
					commit
					d9f845f761
				
			@@ -8,7 +8,7 @@
 | 
			
		||||
include $(TOPDIR)/rules.mk
 | 
			
		||||
 | 
			
		||||
PKG_NAME:=odhcpd
 | 
			
		||||
PKG_RELEASE:=1
 | 
			
		||||
PKG_RELEASE:=2
 | 
			
		||||
PKG_VERSION:=1.11
 | 
			
		||||
 | 
			
		||||
PKG_SOURCE_PROTO:=git
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@ json_select ..
 | 
			
		||||
 | 
			
		||||
case "$protocol" in
 | 
			
		||||
# only enable server mode on statically addressed lan ports
 | 
			
		||||
"static") MODE=server ;;
 | 
			
		||||
"static") [ -e /proc/sys/net/ipv6 ] && MODE=server || MODE=disabled ;;
 | 
			
		||||
*) MODE=disabled ;;
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user