Backport vendored openconnect and HIP flow

This commit is contained in:
Kevin Yue committed 2026-04-18 20:21:10 +08:00
1 parent 51c55376e8
commit f754a7f3c7
30 files changed
+2634 -23

No files matched your search

+28
View File
@@ -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"
File diff suppressed because it is too large. Load diff