mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
openconnect: set config variable on teardown and correctly pass the password
This addresses https://dev.openwrt.org/ticket/16634 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This script wraps openconnect in order to obtain the password
|
||||
# file from cmd.
|
||||
|
||||
# $1 password file
|
||||
# $2... are passed to openconnect
|
||||
|
||||
test -z "$1" && exit 1
|
||||
|
||||
pwfile=$1
|
||||
shift
|
||||
|
||||
cat $pwfile|/usr/sbin/openconnect $*
|
||||
Reference in New Issue
Block a user