Add clashctl and auto port selection

This commit is contained in:
wnlen
2026-01-14 13:31:05 +08:00
parent 0607ff6adc
commit 90f63e54e8
8 changed files with 297 additions and 18 deletions

View File

@ -27,10 +27,13 @@ if [ -f "/etc/profile.d/clash-for-linux.sh" ]; then
rm -f "/etc/profile.d/clash-for-linux.sh"
fi
if [ -f "/usr/local/bin/clashctl" ]; then
rm -f "/usr/local/bin/clashctl"
fi
if [ -d "$Install_Dir" ]; then
rm -rf "$Install_Dir"
echo -e "\033[32m[OK] 已移除安装目录: ${Install_Dir}\033[0m"
else
echo -e "\033[33m[WARN] 未找到安装目录: ${Install_Dir}\033[0m"
fi