소스 검색

vti: use alternative way to check if kernel support is enabled

When necessary support is built in kernel, vti protocol support is
not enabled in netifd.

Signed-off-by: Alin Nastac <[email protected]>
Alin Nastac 4 년 전
부모
커밋
65ca980b48
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      package/network/config/vti/Makefile
  2. 2 2
      package/network/config/vti/files/vti.sh

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

@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 include $(TOPDIR)/rules.mk
 
 
 PKG_NAME:=vti
 PKG_NAME:=vti
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 PKG_LICENSE:=GPL-2.0
 PKG_LICENSE:=GPL-2.0
 
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/package.mk

+ 2 - 2
package/network/config/vti/files/vti.sh

@@ -149,6 +149,6 @@ proto_vti6_init_config() {
 }
 }
 
 
 [ -n "$INCLUDE_ONLY" ] || {
 [ -n "$INCLUDE_ONLY" ] || {
-	[ -f /lib/modules/$(uname -r)/ip_vti.ko ] && add_protocol vti
-	[ -f /lib/modules/$(uname -r)/ip6_vti.ko ] && add_protocol vti6
+	[ -d /sys/module/ip_vti ] && add_protocol vti
+	[ -d /sys/module/ip6_vti ] && add_protocol vti6
 }
 }