xfrm: simplify the check for necessary kernel support

[ -d /sys/module/xfrm_interface ] is enough to check if
CONFIG_XFRM_INTERFACE support was enabled in kernel.

Signed-off-by: Alin Nastac <alin.nastac@technicolor.com>
Signed-off-by: maurerr <mariusd84@gmail.com>
This commit is contained in:
Alin Nastac 2021-03-01 09:51:31 +01:00 committed by maurerr
parent 1276761a2c
commit a31931ed3f
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -68,5 +68,5 @@ proto_xfrm_init_config() {
[ -n "$INCLUDE_ONLY" ] || {
[ -f /lib/modules/$(uname -r)/xfrm_interface.ko -o -d /sys/module/xfrm_interface ] && add_protocol xfrm
[ -d /sys/module/xfrm_interface ] && add_protocol xfrm
}