mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 11:42:18 +08:00
v1.5.2
~增加DDNS脚本(限OpenWrt设备) ~增加自动读取本机hosts功能 ~优化安装脚本 ~公网访问功能增加ipv6支持 ~优化Geosite自动下载检测机制 ~尝试屏蔽OpenWrt自带53端口劫持 ~优化梅林/华硕等低内核设备退出SSH导致进程退出的问题 ~代码优化及bug修复
This commit is contained in:
parent
72321edca5
commit
0de3a68c60
|
@ -81,6 +81,10 @@ clash -u #uninstall
|
||||||
clash -t #test mode
|
clash -t #test mode
|
||||||
```
|
```
|
||||||
|
|
||||||
|
~**Install in Docker:**<br>
|
||||||
|
|
||||||
|
Use: https://github.com/echvoyager/shellclash_docker
|
||||||
|
|
||||||
~**Additional dependencies at runtime**:<br>
|
~**Additional dependencies at runtime**:<br>
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -84,6 +84,10 @@ clash -u #卸载脚本
|
||||||
clash -t #测试模式运行
|
clash -t #测试模式运行
|
||||||
```
|
```
|
||||||
|
|
||||||
|
~**DOCKER环境下安装:**<br>
|
||||||
|
|
||||||
|
请参考https://github.com/echvoyager/shellclash_docker
|
||||||
|
|
||||||
~**运行时的额外依赖**:<br>
|
~**运行时的额外依赖**:<br>
|
||||||
|
|
||||||
`大部分的设备/系统都已经预装了以下的大部分依赖,使用时如无影响可以无视之`
|
`大部分的设备/系统都已经预装了以下的大部分依赖,使用时如无影响可以无视之`
|
||||||
|
|
Binary file not shown.
|
@ -1167,9 +1167,9 @@ tools(){
|
||||||
echo -----------------------------------------------
|
echo -----------------------------------------------
|
||||||
echo -e " 1 ShellClash测试菜单"
|
echo -e " 1 ShellClash测试菜单"
|
||||||
[ -f "/etc/firewall.user" ] && echo -e " 2 \033[32m配置\033[0m外网访问SSH"
|
[ -f "/etc/firewall.user" ] && echo -e " 2 \033[32m配置\033[0m外网访问SSH"
|
||||||
#echo -e " 3 配置DDNS服务: \033[36m$ipv6_support\033[0m ————待施工"
|
[ -f "/etc/config/ddns" -a -d "/etc/ddns" ] && echo -e " 3 配置DDNS服务(需下载相关脚本)"
|
||||||
[ -x /usr/sbin/otapredownload ] && echo -e " 3 \033[33m$mi_update\033[0m小米系统自动更新"
|
|
||||||
echo -e " 4 \033[32m流媒体预解析\033[0m————用于解决DNS解锁在TV应用上失效的问题"
|
echo -e " 4 \033[32m流媒体预解析\033[0m————用于解决DNS解锁在TV应用上失效的问题"
|
||||||
|
[ -x /usr/sbin/otapredownload ] && echo -e " 5 \033[33m$mi_update\033[0m小米系统自动更新"
|
||||||
echo -----------------------------------------------
|
echo -----------------------------------------------
|
||||||
echo -e " 0 返回上级菜单 \033[0m"
|
echo -e " 0 返回上级菜单 \033[0m"
|
||||||
echo -----------------------------------------------
|
echo -----------------------------------------------
|
||||||
|
@ -1187,7 +1187,24 @@ tools(){
|
||||||
sleep 1
|
sleep 1
|
||||||
tools
|
tools
|
||||||
|
|
||||||
elif [ -x /usr/sbin/otapredownload ] && [ "$num" = 3 ]; then
|
elif [ "$num" = 3 ]; then
|
||||||
|
echo -----------------------------------------------
|
||||||
|
if [ ! -f $clashdir/ShellDDNS.sh ];then
|
||||||
|
echo -e "正在获取在线脚本……"
|
||||||
|
$clashdir/start.sh webget /tmp/ShellDDNS.sh $update_url/tools/ShellDDNS.sh
|
||||||
|
if [ "$?" = "0" ];then
|
||||||
|
mv -f /tmp/ShellDDNS.sh $clashdir/ShellDDNS.sh
|
||||||
|
source $clashdir/ShellDDNS.sh
|
||||||
|
else
|
||||||
|
echo -e "\033[31m文件下载失败!\033[0m"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
source $clashdir/ShellDDNS.sh
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
tools
|
||||||
|
|
||||||
|
elif [ -x /usr/sbin/otapredownload ] && [ "$num" = 5 ]; then
|
||||||
[ "$mi_update" = "禁用" ] && sed -i "/otapredownload/d" /etc/crontabs/root || echo "15 3,4,5 * * * /usr/sbin/otapredownload >/dev/null 2>&1" >> /etc/crontabs/root
|
[ "$mi_update" = "禁用" ] && sed -i "/otapredownload/d" /etc/crontabs/root || echo "15 3,4,5 * * * /usr/sbin/otapredownload >/dev/null 2>&1" >> /etc/crontabs/root
|
||||||
echo -----------------------------------------------
|
echo -----------------------------------------------
|
||||||
echo -e "已\033[33m$mi_update\033[0m小米路由器的自动启动,如未生效,请在官方APP中同步设置!"
|
echo -e "已\033[33m$mi_update\033[0m小米路由器的自动启动,如未生效,请在官方APP中同步设置!"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user