添加 OpenWrt/preset-clash-core.sh
Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
parent
5e24da49a2
commit
04c4323ddb
13
OpenWrt/preset-clash-core.sh
Normal file
13
OpenWrt/preset-clash-core.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p files/etc/openclash/core
|
||||
|
||||
CLASH_META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-${1}.tar.gz"
|
||||
GEOIP_URL="https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat"
|
||||
GEOSITE_URL="https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat"
|
||||
|
||||
wget -qO- $CLASH_META_URL | tar xOvz > files/etc/openclash/core/clash_meta
|
||||
wget -qO- $GEOIP_URL > files/etc/openclash/GeoIP.dat
|
||||
wget -qO- $GEOSITE_URL > files/etc/openclash/GeoSite.dat
|
||||
|
||||
chmod +x files/etc/openclash/core/clash*
|
Loading…
Reference in New Issue
Block a user