From df37425226985793e8e0a010a2e34fbdb7356484 Mon Sep 17 00:00:00 2001 From: wnlen <62139570+wnlen@users.noreply.github.com> Date: Fri, 20 Mar 2026 15:52:22 +0800 Subject: [PATCH] Update install.sh --- install.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index f9dc9b1..5c2d3f5 100755 --- a/install.sh +++ b/install.sh @@ -591,14 +591,9 @@ fi # ========================= section "下一步开启代理(可选)" -PROFILED_FILE="/etc/profile.d/clash-for-linux.sh" - -if [ -f "$PROFILED_FILE" ]; then - log " $(cmd "source $PROFILED_FILE")" - log " $(cmd "proxy_on")" -else - log " (未安装 Shell 代理快捷命令,跳过)" -fi +log " $(cmd "clashctl on") # 开启当前终端代理" +log " $(cmd "clashctl off") # 关闭当前终端代理" +log " $(cmd "clashctl status") # 查看状态" # ========================= # 启动后快速诊断