Skip to content

Commit ef1fd70

Browse files
committed
v1.7.0e
~现在启动后会自动进行一次系统时间同步(使用ntpd) ~修复错误读取/tmp目录内核及配置文件导致的一系列bug
1 parent 7029074 commit ef1fd70

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

bin/ShellClash.tar.gz

47 Bytes
Binary file not shown.

bin/clashfm.tar.gz

45 Bytes
Binary file not shown.

bin/version

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ clashpre_v=2022.11.25
33
clash_v=v1.7.1
44
meta_v=v1.13.2
55
GeoIP_v=20230128
6-
versionsh=1.7.0d
6+
versionsh=1.7.0e

scripts/clash.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ ckstatus(){
9898
#检查执行权限
9999
[ ! -x $clashdir/start.sh ] && chmod +x $clashdir/start.sh
100100
#检查/tmp内核文件
101-
for file in `find /tmp -name "clash-linux*" -o -name "clash"` ; do
101+
for file in `ls -F /tmp | grep -v [/\$] | grep -iE '^clash$|^clash-linux*'` ; do
102102
chmod +x $file
103103
tmp_version=$($file -v 2>/dev/null)
104104
if [ -n "$tmp_version" ];then
@@ -127,7 +127,7 @@ ckstatus(){
127127
done
128128
#检查/tmp配置文件
129129
[ -x $bindir/clash ] && \
130-
for file in `find /tmp -name "*.yaml" -o -name "*.yml"` ; do
130+
for file in `ls -F /tmp | grep -v [/\$] | grep -iE '.yaml$|.yml$'` ; do
131131
$bindir/clash -t -d $bindir -f $file &>/dev/null && {
132132
echo -e "\033[32m发现可用的YAML配置文件\033[0m"
133133
echo $file

scripts/init.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# Copyright (C) Juewuy
33

4-
version=1.7.0d
4+
version=1.7.0e
55

66
setdir(){
77
dir_avail(){

scripts/start.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,8 @@ afstart(){
12331233
[ "$local_proxy" = "已开启" ] && [ "$local_type" = "iptables增强模式" ] && start_output
12341234
[ "$local_proxy" = "已开启" ] && [ "$local_type" = "nftables增强模式" ] && [ "$redir_mod" = "纯净模式" ] && start_nft
12351235
ckcmd iptables && start_wan
1236+
#同步本机时间
1237+
ckcmd ntpd && ntpd -n -q -p ntp.aliyun.com
12361238
#标记启动时间
12371239
mark_time
12381240
#加载定时任务

0 commit comments

Comments
 (0)