Files
cellular-proxy/cpxy
T
Hermes aec388682b fix: 安装启动后不再卡住,保证脚本退出
- 去掉可能阻塞的 systemctl status 全量输出
- verify 使用 connect/max 超时;安装阶段 8s 快速验证
- 验证失败只告警,不阻塞安装结束
2026-07-21 11:26:30 +00:00

21 lines
574 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")" && pwd)"
cmd="${1:-help}"
shift || true
case "$cmd" in
detect) exec "$ROOT/scripts/detect.sh" "$@" ;;
generate) exec "$ROOT/scripts/generate.sh" "$@" ;;
install) exec "$ROOT/scripts/install.sh" "$@" ;;
verify) exec "$ROOT/scripts/verify.sh" "$@" ;;
fetch) exec "$ROOT/scripts/fetch-binaries.sh" "$@" ;;
help|*)
cat <<H
./cpxy <cmd>
detect | generate | install | verify | fetch
语义: 走本代理的连接一律从数据网卡出口(系统默认仍可走 WiFi)
H
;;
esac