xfrm: simplify the check for necessary kernel support
authorAlin Nastac <alin.nastac@technicolor.com>
Mon, 1 Mar 2021 08:51:31 +0000 (09:51 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Sat, 13 Mar 2021 19:59:22 +0000 (20:59 +0100)
[ -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>
package/network/config/xfrm/Makefile
package/network/config/xfrm/files/xfrm.sh

index bcee89f82ce624cc02fedabdb0e796c293cfe7f7..777f20c77ce6fd7eacd239393dc9237ac69bd390 100644 (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
index ca7c3380e6eaa9b4a83df3101da5cc4f4f47d107..bdebd4b9c3663c051da997cd3125879df3e44177 100755 (executable)
@@ -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
 }