mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-18 22:16:18 -05:00
Backport vendored openconnect and HIP flow
This commit is contained in:
30 files changed
+2634
-23
No files matched your search
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Wrapper for gpclient hip
|
||||
LOGFILE="/tmp/gpclient-hipreport.log"
|
||||
|
||||
LINUX_GPCLIENT_BIN="/usr/bin/gpclient"
|
||||
HOMEBREW_GPCLIENT_BIN="/opt/homebrew/bin/gpclient"
|
||||
GPCLIENT_BIN="${GPCLIENT_BIN:-}"
|
||||
|
||||
if [ -n "$GPCLIENT_BIN" ] && [ -x "$GPCLIENT_BIN" ]; then
|
||||
:
|
||||
elif [ -x "$LINUX_GPCLIENT_BIN" ]; then
|
||||
GPCLIENT_BIN="$LINUX_GPCLIENT_BIN"
|
||||
elif [ -x "$HOMEBREW_GPCLIENT_BIN" ]; then
|
||||
GPCLIENT_BIN="$HOMEBREW_GPCLIENT_BIN"
|
||||
else
|
||||
echo "Error: gpclient binary not found." > "$LOGFILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
HIP_REPORT_OUTPUT=$("$GPCLIENT_BIN" hip "$@" 2> "$LOGFILE")
|
||||
STATUS=$?
|
||||
|
||||
if [ $STATUS -ne 0 ]; then
|
||||
exit $STATUS
|
||||
fi
|
||||
|
||||
printf '%s\n' "$HIP_REPORT_OUTPUT"
|
||||
+1213
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user