From e68acf8039facb4925cc28969b97c7a289889d7d Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Tue, 9 Mar 2021 20:26:30 +0800 Subject: [PATCH] feat: support auto update qqwrt.dat --- backend/qqwry-update.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 backend/qqwry-update.sh diff --git a/backend/qqwry-update.sh b/backend/qqwry-update.sh new file mode 100644 index 0000000..770c360 --- /dev/null +++ b/backend/qqwry-update.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +cd `dirname $0` +mkdir -p temp +cd temp +wget http://update.cz88.net/ip/copywrite.rar +wget http://update.cz88.net/ip/qqwry.rar + +cat > unlock.php < +EOF + +php unlock.php +cd .. +cp -f temp/qqwry.dat qqwry.dat +rm -rf temp/ \ No newline at end of file