v2ray/koolproxy/update.sh

23 lines
485 B
Bash
Raw Normal View History

2019-01-12 16:01:22 +00:00
#!/bin/sh
# get latest binary
cd koolproxy/koolproxy/
mkdir -p data
mkdir -p data/rules
wget https://koolproxy.com/downloads/mips
if [ "$?" == "0" ];then
mv mips koolproxy && chmod +x koolproxy
else
rm mips
fi
#get latest rules
cd data/rules
rm -rf *
wget --no-check-certificate https://kprule.com/koolproxy.txt
wget --no-check-certificate https://kprule.com/daily.txt
wget --no-check-certificate https://kprule.com/kp.dat
wget --no-check-certificate https://kprule.com/user.txt