Browse Source

openconnect: break each var into its own line in order

For easier review

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
lilik-openwrt-22.03
Yousong Zhou 4 years ago
parent
commit
fce2b069df
1 changed files with 18 additions and 1 deletions
  1. +18
    -1
      net/openconnect/files/openconnect.sh

+ 18
- 1
net/openconnect/files/openconnect.sh View File

@ -39,7 +39,24 @@ proto_openconnect_add_form_entry() {
proto_openconnect_setup() {
local config="$1"
json_get_vars server port interface username serverhash authgroup usergroup password password2 token_mode token_secret token_script os csd_wrapper mtu juniper form_entry
json_get_vars \
authgroup \
csd_wrapper \
form_entry \
interface \
juniper \
mtu \
os \
password \
password2 \
port \
server \
serverhash \
token_mode \
token_script \
token_secret \
usergroup \
username \
grep -q tun /proc/modules || insmod tun
ifname="vpn-$config"


Loading…
Cancel
Save