diff --git a/bin/ShellCrash.tar.gz b/bin/ShellCrash.tar.gz index 05926ac..9cb0d9b 100644 Binary files a/bin/ShellCrash.tar.gz and b/bin/ShellCrash.tar.gz differ diff --git a/bin/clashfm.tar.gz b/bin/clashfm.tar.gz index 76e120d..b1faa61 100644 Binary files a/bin/clashfm.tar.gz and b/bin/clashfm.tar.gz differ diff --git a/bin/version b/bin/version index 84c4bc9..9ca9e50 100644 --- a/bin/version +++ b/bin/version @@ -3,4 +3,4 @@ clashpre_v=2022.11.25 clash_v=v1.7.1 meta_v=v1.17.0 GeoIP_v=20231230 -versionsh=1.8.2h +versionsh=1.8.2i diff --git a/scripts/init.sh b/scripts/init.sh index cf79d05..f1ffdf0 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -1,7 +1,7 @@ #!/bin/sh # Copyright (C) Juewuy -version=1.8.2h +version=1.8.2i setdir(){ dir_avail(){ @@ -178,7 +178,6 @@ fi type bash &>/dev/null && shtype=bash || shtype=sh sed -i "s|/bin/sh|/bin/$shtype|" $CRASHDIR/start.sh chmod 755 $CRASHDIR/start.sh -chmod 755 $CRASHDIR/task.sh setconfig versionsh_l $version #设置更新地址 [ -n "$url" ] && setconfig update_url $url @@ -254,6 +253,7 @@ done for file in cron task.sh task.list;do mv -f $CRASHDIR/$file $CRASHDIR/task/$file 2>/dev/null done +chmod 755 $CRASHDIR/task/task.sh for file in log clash.service mark? mark.bak;do rm -rf $CRASHDIR/$file done diff --git a/scripts/misnap_init.sh b/scripts/misnap_init.sh index 777df3c..5d0272e 100644 --- a/scripts/misnap_init.sh +++ b/scripts/misnap_init.sh @@ -50,9 +50,9 @@ init(){ [ -n "$(grep 'init complete' $log_file)" ] && i=20 || i=$((i + 1)) done #初始化环境变量 - sed -i "/alias clash/d" $profile + sed -i "/alias crash/d" $profile sed -i "/export CRASHDIR/d" $profile - echo "alias clash=\"$CRASHDIR/clash.sh\"" >>$profile + echo "alias crash=\"$CRASHDIR/clash.sh\"" >>$profile echo "export CRASHDIR=\"$CRASHDIR\"" >>$profile #软固化功能 autoSSH @@ -64,7 +64,7 @@ init(){ #AX6S/AX6000修复tun功能 [ -f $CRASHDIR/configs/tun.ko ] && tunfix #小米7000/小米万兆修复tproxy - [ -f /etc/init.d/qca-nss-ecm ] && [ -n "$(grep 'redir_mod=Tproxy' $CRASHDIR/configs/ShellClash.cfg )" ] && tproxyfix + [ -f /etc/init.d/qca-nss-ecm ] && [ -n "$(grep 'redir_mod=Tproxy' $CRASHDIR/configs/ShellCrash.cfg )" ] && tproxyfix #启动服务 /etc/init.d/clash start /etc/init.d/clash enable