v1.8.2h
~修复部分小米设备无法开机启动的bug ~修复卸载命令未能移除增强启动命令的bug
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3,4 +3,4 @@ clashpre_v=2022.11.25
|
|||||||
clash_v=v1.7.1
|
clash_v=v1.7.1
|
||||||
meta_v=v1.17.0
|
meta_v=v1.17.0
|
||||||
GeoIP_v=20231230
|
GeoIP_v=20231230
|
||||||
versionsh=1.8.2g
|
versionsh=1.8.2h
|
||||||
|
|||||||
@@ -1815,6 +1815,7 @@ case "$1" in
|
|||||||
echo " -t 测试模式"
|
echo " -t 测试模式"
|
||||||
echo " -h 帮助列表"
|
echo " -h 帮助列表"
|
||||||
echo " -u 卸载脚本"
|
echo " -u 卸载脚本"
|
||||||
|
echo " -i 初始化脚本"
|
||||||
echo -----------------------------------------
|
echo -----------------------------------------
|
||||||
echo " clash -s start 启动服务"
|
echo " clash -s start 启动服务"
|
||||||
echo " clash -s stop 停止服务"
|
echo " clash -s stop 停止服务"
|
||||||
@@ -1832,6 +1833,9 @@ case "$1" in
|
|||||||
-s)
|
-s)
|
||||||
$CRASHDIR/start.sh $2 $3 $4 $5 $6
|
$CRASHDIR/start.sh $2 $3 $4 $5 $6
|
||||||
;;
|
;;
|
||||||
|
-i)
|
||||||
|
source $CRASHDIR/init.sh
|
||||||
|
;;
|
||||||
-st)
|
-st)
|
||||||
shtype=sh && [ -n "$(ls -l /bin/sh|grep -o dash)" ] && shtype=bash
|
shtype=sh && [ -n "$(ls -l /bin/sh|grep -o dash)" ] && shtype=bash
|
||||||
$shtype -x $CRASHDIR/start.sh $2 $3 $4 $5 $6
|
$shtype -x $CRASHDIR/start.sh $2 $3 $4 $5 $6
|
||||||
@@ -1874,6 +1878,9 @@ case "$1" in
|
|||||||
userdel -r shellclash 2>/dev/null
|
userdel -r shellclash 2>/dev/null
|
||||||
nvram set script_usbmount="" 2>/dev/null
|
nvram set script_usbmount="" 2>/dev/null
|
||||||
nvram commit 2>/dev/null
|
nvram commit 2>/dev/null
|
||||||
|
uci delete firewall.ShellClash
|
||||||
|
uci delete firewall.ShellCrash
|
||||||
|
uci commit firewall
|
||||||
echo -----------------------------------------------
|
echo -----------------------------------------------
|
||||||
echo -e "\033[36m已卸载ShellCrash相关文件!有缘再会!\033[0m"
|
echo -e "\033[36m已卸载ShellCrash相关文件!有缘再会!\033[0m"
|
||||||
echo -e "\033[33m请手动关闭当前窗口以重置环境变量!\033[0m"
|
echo -e "\033[33m请手动关闭当前窗口以重置环境变量!\033[0m"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) Juewuy
|
# Copyright (C) Juewuy
|
||||||
|
|
||||||
version=1.8.2g
|
version=1.8.2h
|
||||||
|
|
||||||
setdir(){
|
setdir(){
|
||||||
dir_avail(){
|
dir_avail(){
|
||||||
@@ -214,6 +214,8 @@ fi
|
|||||||
#镜像化OpenWrt(snapshot)额外设置
|
#镜像化OpenWrt(snapshot)额外设置
|
||||||
if [ "$systype" = "mi_snapshot" -o "$systype" = "ng_snapshot" ];then
|
if [ "$systype" = "mi_snapshot" -o "$systype" = "ng_snapshot" ];then
|
||||||
chmod 755 $CRASHDIR/misnap_init.sh
|
chmod 755 $CRASHDIR/misnap_init.sh
|
||||||
|
uci delete firewall.ShellClash
|
||||||
|
uci delete firewall.ShellCrash
|
||||||
uci set firewall.ShellCrash=include
|
uci set firewall.ShellCrash=include
|
||||||
uci set firewall.ShellCrash.type='script'
|
uci set firewall.ShellCrash.type='script'
|
||||||
uci set firewall.ShellCrash.path="$CRASHDIR/misnap_init.sh"
|
uci set firewall.ShellCrash.path="$CRASHDIR/misnap_init.sh"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) Juewuy
|
# Copyright (C) Juewuy
|
||||||
|
|
||||||
CRASHDIR="$(uci get firewall.ShellClash.path | sed 's/\/misnap_init.sh//')"
|
CRASHDIR="$(uci get firewall.ShellCrash.path | sed 's/\/misnap_init.sh//')"
|
||||||
profile=/etc/profile
|
profile=/etc/profile
|
||||||
|
|
||||||
autoSSH(){
|
autoSSH(){
|
||||||
|
|||||||
Reference in New Issue
Block a user