From 278a35be9c5b82c53512c0ed63ff75ba7fe27425 Mon Sep 17 00:00:00 2001 From: Rui Salvaterra Date: Tue, 24 May 2022 17:13:04 +0100 Subject: [PATCH] openconnect: fix inclusion of netifd proto scripts This is the preferred way, according to the wiki. Signed-off-by: Rui Salvaterra --- net/openconnect/files/openconnect.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/net/openconnect/files/openconnect.sh b/net/openconnect/files/openconnect.sh index 1de3a8b25..58e44be93 100755 --- a/net/openconnect/files/openconnect.sh +++ b/net/openconnect/files/openconnect.sh @@ -1,7 +1,10 @@ #!/bin/sh -. /lib/functions.sh -. ../netifd-proto.sh -init_proto "$@" + +[ -n "$INCLUDE_ONLY" ] || { + . /lib/functions.sh + . ../netifd-proto.sh + init_proto "$@" +} append_args() { while [ $# -gt 0 ]; do @@ -149,4 +152,6 @@ proto_openconnect_teardown() { proto_kill_command "$config" 2 } -add_protocol openconnect +[ -n "$INCLUDE_ONLY" ] || { + add_protocol openconnect +}