소스 검색

netifd: do not validate relevant section when ipv6 is not supported

Signed-off-by: Rosy Song <[email protected]>
Rosy Song 7 년 전
부모
커밋
a6add47869
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      package/network/config/netifd/Makefile
  2. 2 2
      package/network/config/netifd/files/etc/init.d/network

+ 1 - 1
package/network/config/netifd/Makefile

@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=netifd
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/netifd.git

+ 2 - 2
package/network/config/netifd/files/etc/init.d/network

@@ -133,9 +133,9 @@ service_triggers()
 	procd_open_validate
 	validate_atm_bridge_section
 	validate_route_section
-	validate_route6_section
+	[ -e /proc/sys/net/ipv6 ] && validate_route6_section
 	validate_rule_section
-	validate_rule6_section
+	[ -e /proc/sys/net/ipv6 ] && validate_rule6_section
 	validate_switch_section
 	validate_switch_vlan
 	procd_close_validate