基于Clash Core 制作的Clash For Linux备份仓库 A Clash For Linux Backup Warehouse Based on Clash Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
385 B

#!/bin/bash
# 关闭clash服务
PID_NUM=`ps -ef | grep [c]lash-linux-a | wc -l`
PID=`ps -ef | grep [c]lash-linux-a | awk '{print $2}'`
if [ $PID_NUM -ne 0 ]; then
kill -9 $PID
# ps -ef | grep [c]lash-linux-a | awk '{print $2}' | xargs kill -9
fi
# 清除环境变量
> /etc/profile.d/clash.sh
echo -e "\n服务关闭成功,请执行以下命令关闭系统代理:proxy_off\n"