openconnect: fix inclusion of netifd proto scripts
This is the preferred way, according to the wiki. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
This commit is contained in:
parent
2ab669d0b9
commit
278a35be9c
1 changed files with 9 additions and 4 deletions
|
@ -1,7 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. /lib/functions.sh
|
|
||||||
. ../netifd-proto.sh
|
[ -n "$INCLUDE_ONLY" ] || {
|
||||||
init_proto "$@"
|
. /lib/functions.sh
|
||||||
|
. ../netifd-proto.sh
|
||||||
|
init_proto "$@"
|
||||||
|
}
|
||||||
|
|
||||||
append_args() {
|
append_args() {
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
|
@ -149,4 +152,6 @@ proto_openconnect_teardown() {
|
||||||
proto_kill_command "$config" 2
|
proto_kill_command "$config" 2
|
||||||
}
|
}
|
||||||
|
|
||||||
add_protocol openconnect
|
[ -n "$INCLUDE_ONLY" ] || {
|
||||||
|
add_protocol openconnect
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue