2
0
forked from Ivasoft/openwrt

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>
This commit is contained in:
Alin Nastac
2021-03-01 09:51:31 +01:00
committed by Hans Dedecker
parent 65ca980b48
commit 8704d138df
2 changed files with 2 additions and 2 deletions

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
}