From e7a2fe648e05eba900b7815724a99943b6d47b46 Mon Sep 17 00:00:00 2001 From: juewuy Date: Mon, 7 Jun 2021 18:46:08 +0800 Subject: [PATCH] =?UTF-8?q?~=E5=A2=9E=E5=8A=A0=E5=85=A8=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E8=84=9A=E6=9C=AC=E5=8F=8A=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E8=BE=85=E5=8A=A9=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README_CN.md | 14 ++++++-------- install_n.sh | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/README_CN.md b/README_CN.md index 55a19ee..4bf9389 100644 --- a/README_CN.md +++ b/README_CN.md @@ -21,13 +21,13 @@ ~通过管理脚本在Shell环境下便捷使用[Clash](https://github.com/Dreamacro/clash)
~支持在Shell环境下管理[Clash各种功能](https://lancellc.gitbook.io/clash)
~支持在线导入[Clash](https://github.com/Dreamacro/clash)支持的分享、订阅及配置链接
~支持配置定时任务,支持配置文件定时更新
~支持在线安装及使用本地网页面板管理内置规则
-~支持路由模式、本机模式等多种模式切换
~支持GNOME、KDE桌面自动配置本机模式
~支持在线更新
+~支持路由模式、本机模式等多种模式切换
~支持在线更新
设备支持: -- ~支持各种基于OpenWrt或使用OpenWrt二次定制开发的路由器设备
-~支持各种运行标准Linux系统(如Debian/CenOS/Armbian等)的设备
~兼容Padavan固件(保守模式)、潘多拉固件
~兼容各类使用Linux内核定制开发的各类型设备
+~支持各种运行标准Linux系统(如Debian/CenOS/Armbian等)的设备
~兼容Padavan固件(保守模式)、潘多拉固件以及华硕/梅林固件
~兼容各类使用Linux内核定制开发的各类型设备
——————————
~更多设备支持,请提issue或前往TG群反馈(需提供设备名称及运行uname -a返回的设备核心信息)
@@ -47,12 +47,10 @@ opkg update && opkg install curl ~**使用curl安装**:
```Shell -#Release版本-github直连 -sh -c "$(curl -kfsSl --resolve raw.githubusercontent.com:443:199.232.68.133 https://raw.githubusercontent.com/juewuy/ShellClash/master/install.sh)" && source /etc/profile &> /dev/null -#Release版本-jsdelivrCDN源 -sh -c "$(curl -kfsSl https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master/install.sh)" && source /etc/profile &> /dev/null -#Test版本-github直连 -sh -c "$(curl -kfsSl --resolve raw.githubusercontent.com:443:199.232.68.133 https://raw.githubusercontent.com/juewuy/ShellClash/master/install.sh)" -s 1 && source /etc/profile &> /dev/null +#github直连 +export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' && sh -c "$(curl -s $url/install_n.sh)" && source /etc/profile &> /dev/null +#jsdelivrCDN源 +export url='https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master' && sh -c "$(curl -s $url/install_n.sh)" && source /etc/profile &> /dev/null ``` ~**使用wget安装**:
diff --git a/install_n.sh b/install_n.sh index baa5e3b..8846f78 100644 --- a/install_n.sh +++ b/install_n.sh @@ -56,7 +56,7 @@ elif [ "$num" = "1" ];then echo "无法切换版本,尝试安装测试版!" fi fi -webget /tmp/clashversion $url/bin/version echooff +webget /tmp/clashversion "$url/bin/version" echooff [ "$result" = "200" ] && versionsh=$(cat /tmp/clashversion | grep "versionsh" | awk -F "=" '{print $2}') [ -z "$release_new" ] && release_new=$versionsh rm -rf /tmp/clashversion