summarylogtreecommitdiffstats
path: root/cfw-start-pre.sh
diff options
context:
space:
mode:
authorsukanka2022-08-19 17:22:36 +0800
committersukanka2022-08-19 17:22:36 +0800
commitacf96de442002168fd8614bb6c2c7f38a386f556 (patch)
tree60fc4b64dcc09bf2f4949eaa31a09d960bfe667e /cfw-start-pre.sh
parent908d22d1f72de4abd9707dc0c7e5ba22a8ac7699 (diff)
downloadaur-acf96de442002168fd8614bb6c2c7f38a386f556.tar.gz
update to 0.19.27
Diffstat (limited to 'cfw-start-pre.sh')
-rw-r--r--cfw-start-pre.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/cfw-start-pre.sh b/cfw-start-pre.sh
new file mode 100644
index 000000000000..7c0a4f372598
--- /dev/null
+++ b/cfw-start-pre.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+_parch=$(uname -m | sed "s/x86_64/x64/;s/aarch64/arm64/")
+install -Dm644 -o $1 -g $1 /etc/clash/Country.mmdb -t "/home/$1/.config/clash"
+install -Dm755 -o $1 -g $1 \
+ "/opt/clash-for-windows/static/files/linux/${_parch}/service/clash-core-service" \
+ -t "/home/$1/.config/clash/service"