File tree 6 files changed +6
-4
lines changed
6 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ clashpre_v=2022.11.25
3
3
clash_v=v1.7.1
4
4
meta_v=v1.13.2
5
5
GeoIP_v=20230128
6
- versionsh=1.7.0d
6
+ versionsh=1.7.0e
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ ckstatus(){
98
98
# 检查执行权限
99
99
[ ! -x $clashdir /start.sh ] && chmod +x $clashdir /start.sh
100
100
# 检查/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
102
102
chmod +x $file
103
103
tmp_version=$( $file -v 2> /dev/null)
104
104
if [ -n " $tmp_version " ]; then
@@ -127,7 +127,7 @@ ckstatus(){
127
127
done
128
128
# 检查/tmp配置文件
129
129
[ -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
131
131
$bindir /clash -t -d $bindir -f $file & > /dev/null && {
132
132
echo -e " \033[32m发现可用的YAML配置文件\033[0m"
133
133
echo $file
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
# Copyright (C) Juewuy
3
3
4
- version=1.7.0d
4
+ version=1.7.0e
5
5
6
6
setdir (){
7
7
dir_avail (){
Original file line number Diff line number Diff line change @@ -1233,6 +1233,8 @@ afstart(){
1233
1233
[ "$local_proxy" = "已开启" ] && [ "$local_type" = "iptables增强模式" ] && start_output
1234
1234
[ "$local_proxy" = "已开启" ] && [ "$local_type" = "nftables增强模式" ] && [ "$redir_mod" = "纯净模式" ] && start_nft
1235
1235
ckcmd iptables && start_wan
1236
+ #同步本机时间
1237
+ ckcmd ntpd && ntpd -n -q -p ntp.aliyun.com
1236
1238
#标记启动时间
1237
1239
mark_time
1238
1240
#加载定时任务
You can’t perform that action at this time.
0 commit comments