sh 适用于OpenConnect的Cisco Anyconnect CSD包装器。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 适用于OpenConnect的Cisco Anyconnect CSD包装器。相关的知识,希望对你有一定的参考价值。

#!/bin/sh
# Cisco Anyconnect CSD wrapper for OpenConnect

CSTUB="$HOME/.cisco/hostscan/bin/cstub"


$ARCH=$(uname -m)

if [[ "$ARCH" == "x86_64" ]]
then
    ARCH="linux_x64"
else
    ARCH="linux"
fi

shift

URL=
TICKET=
STUB=
GROUP=
CERTHASH=
LANGSELEN=

while [ "$1" ]; do
    if [ "$1" == "-ticket" ];   then shift; TICKET=$1; fi
    if [ "$1" == "-stub" ];     then shift; STUB=$1; fi
    if [ "$1" == "-group" ];    then shift; GROUP=$1; fi
    if [ "$1" == "-certhash" ]; then shift; CERTHASH=$1; fi
    if [ "$1" == "-url" ];      then shift; URL=$1; fi
    if [ "$1" == "-langselen" ];then shift; LANGSELEN=$1; fi
    shift
done

ARGS="-log error -ticket $TICKET -stub $STUB -group $GROUP -host $URL -certhash $CERTHASH"

if [[ -f $CSTUB && -x $CSTUB ]]
then
    $CSTUB $ARGS
else
    wget -c "https://${CSD_HOSTNAME}/CACHE/sdesktop/hostscan/$ARCH/cstub" -O $CSTUB
    chmod +x $CSTUB
    $CSTUB $ARGS
fi

以上是关于sh 适用于OpenConnect的Cisco Anyconnect CSD包装器。的主要内容,如果未能解决你的问题,请参考以下文章

sh 适用于OpenConnect的Cisco Anyconnect CSD包装器。

MacOS上使用Openconnect代替Cisco Anyconnect

linux 下连接 Cisco AnyConnect

conopen协议是怎么回事

sh OpenConnect 7的Autobuild脚本(Ubuntu 14/15/16 trusty / vivid / xenial)

openconnect怎样下发路由表?