From 5530eaf4e47a56fd1ef6135cba453aea9ed0aac8 Mon Sep 17 00:00:00 2001 From: NekoRectifier Date: Tue, 12 Dec 2023 15:19:39 +0800 Subject: [PATCH] feat: detects existing clash instances before it starts one --- bin/clash-linux-amd64 | Bin bin/clash-linux-arm64 | Bin bin/clash-linux-armv7 | Bin conf/cache.db | Bin 0 -> 32768 bytes conf/config.yaml | 9679 +++++++++++++++++++++++++++ logs/clash.log | 0 restart.sh | 4 +- scripts/clash_profile_conversion.sh | 0 scripts/get_cpu_arch.sh | 0 setup.sh | 32 + shutdown.sh | 0 start.sh | 38 +- temp/clash.yaml | 0 temp/config.yaml | 0 temp/proxy.txt | 0 temp/templete_config.yaml | 28 - tools/subconverter/subconverter | Bin 17 files changed, 9723 insertions(+), 58 deletions(-) mode change 100644 => 100755 bin/clash-linux-amd64 mode change 100644 => 100755 bin/clash-linux-arm64 mode change 100644 => 100755 bin/clash-linux-armv7 create mode 100644 conf/cache.db delete mode 100644 logs/clash.log mode change 100644 => 100755 restart.sh mode change 100644 => 100755 scripts/clash_profile_conversion.sh mode change 100644 => 100755 scripts/get_cpu_arch.sh create mode 100755 setup.sh mode change 100644 => 100755 shutdown.sh mode change 100644 => 100755 start.sh delete mode 100644 temp/clash.yaml delete mode 100644 temp/config.yaml delete mode 100644 temp/proxy.txt delete mode 100644 temp/templete_config.yaml mode change 100644 => 100755 tools/subconverter/subconverter diff --git a/bin/clash-linux-amd64 b/bin/clash-linux-amd64 old mode 100644 new mode 100755 diff --git a/bin/clash-linux-arm64 b/bin/clash-linux-arm64 old mode 100644 new mode 100755 diff --git a/bin/clash-linux-armv7 b/bin/clash-linux-armv7 old mode 100644 new mode 100755 diff --git a/conf/cache.db b/conf/cache.db new file mode 100644 index 0000000000000000000000000000000000000000..74714fb1b505999768677847992e5f5dd8b4b6ee GIT binary patch literal 32768 zcmeI)Jxjwt7y#h2ejp-JN4Ne27YBcUL!pB%LLFSRn_C?nqzIy}E>7752hqVn|B64L zen6pvlam*dlPWs4c6bin+)Hw4!jtLlO&UVcrpmteINz(}dG-7L@^F|glbIj=>)dwO z+*oL*ae4v-2oNAZfB*pk1PBlyKwx|XCdym+YySVa7BFzTlVzUf|7ks-p1t3_HJV2Q zL!|@=5FkK+009C72oNAZfWVjtr1^a%6e|JwHZT3p#@LF{Ztb;p_FKC#{k5g@@`L$# zi!qjB^t1EZ+RNcd_w4HVwDZ(?=x4{*G2+h4i|+kRb9tq9P^+)4H{xK8009C72oNAZ zfB*pk1PBlqsz9peS3|K9klq7Gb^W1U+>a9=K!5-N0t5&UAV7cs0RkftNb~(v#~)q& ze^vc|Bv05y2oNAZfB*pk1PBlyK!8B_`ai!^|4-ior1t_C5g/etc/profile.d/clash.fish<:9090/ui" echo -e "Secret: ${Secret}" echo '' -# 添加环境变量(root权限) -cat>/etc/profile.d/clash.sh<