mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 16:58:22 +00:00
gre: use alternative way to check if kernel support is enabled
When necessary support is built in kernel, gre protocol support is not enabled in netifd. Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
This commit is contained in:
parent
1cd098784e
commit
8a35ebe375
@ -8,7 +8,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gre
|
PKG_NAME:=gre
|
||||||
PKG_RELEASE:=12
|
PKG_RELEASE:=13
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
@ -291,8 +291,6 @@ proto_grev6tap_init_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[ -n "$INCLUDE_ONLY" ] || {
|
[ -n "$INCLUDE_ONLY" ] || {
|
||||||
[ -f /lib/modules/$(uname -r)/gre.ko ] && add_protocol gre
|
[ -d /sys/module/ip_gre ] && { add_protocol gre; add_protocol gretap; }
|
||||||
[ -f /lib/modules/$(uname -r)/gre.ko ] && add_protocol gretap
|
[ -d /sys/module/ip6_gre ] && { add_protocol grev6; add_protocol grev6tap; }
|
||||||
[ -f /lib/modules/$(uname -r)/ip6_gre.ko ] && add_protocol grev6
|
|
||||||
[ -f /lib/modules/$(uname -r)/ip6_gre.ko ] && add_protocol grev6tap
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user