b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | # This script wraps openconnect in order to obtain the password | ||||
4 | # file from cmd. | ||||
5 | |||||
6 | # $1 password file | ||||
7 | # $2... are passed to openconnect | ||||
8 | |||||
9 | test -z "$1" && exit 1 | ||||
10 | |||||
11 | pwfile=$1 | ||||
12 | shift | ||||
13 | exec /usr/sbin/openconnect "$@" <$pwfile |