update-03.03
This commit is contained in:
parent
0dd33ddaa3
commit
021ef92b93
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -11,53 +11,12 @@ exist() {
|
||||||
command -v "$1" >/dev/null 2>&1
|
command -v "$1" >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
WORKDIR="/usr/share/v2ray"
|
|
||||||
TEMPDIR="/tmp/mosdnsupdatelist"
|
|
||||||
|
|
||||||
DOWNLOAD_LINK_GEOIP="https://github.com/Loyalsoldier/geoip/releases/latest/download/geoip-only-cn-private.dat"
|
|
||||||
DOWNLOAD_LINK_GEOSITE="https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat"
|
|
||||||
|
|
||||||
getdat() {
|
getdat() {
|
||||||
download_geoip() {
|
if exist curl; then
|
||||||
if ! curl -s -L -H 'Cache-Control: no-cache' -o "${TEMPDIR}/geoip.dat.new" "$DOWNLOAD_LINK_GEOIP"; then
|
curl -fSLo "$TMPDIR/$1" "https://gh.404delivr.workers.dev/https://github.com/QiuSimons/openwrt-mos/raw/master/dat/$1"
|
||||||
echo 'error: Download failed! Please check your network or try again.'
|
else
|
||||||
EXIT 1
|
wget "https://gh.404delivr.workers.dev/https://github.com/QiuSimons/openwrt-mos/raw/master/dat/$1" -nv -O "$TMPDIR/$1"
|
||||||
fi
|
fi
|
||||||
if ! curl -s -L -H 'Cache-Control: no-cache' -o "${TEMPDIR}/geoip.dat.sha256sum.new" "$DOWNLOAD_LINK_GEOIP.sha256sum"; then
|
|
||||||
echo 'error: Download failed! Please check your network or try again.'
|
|
||||||
EXIT 2
|
|
||||||
fi
|
|
||||||
SUM="$(sha256sum ${TEMPDIR}/geoip.dat.new | sed 's/ .*//')"
|
|
||||||
CHECKSUM="$(sed 's/ .*//' ${TEMPDIR}/geoip.dat.sha256sum.new)"
|
|
||||||
if [[ "$SUM" != "$CHECKSUM" ]]; then
|
|
||||||
echo 'error: Check failed! Please check your network or try again.'
|
|
||||||
EXIT 3
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
download_geosite() {
|
|
||||||
if ! curl -s -L -H 'Cache-Control: no-cache' -o "${TEMPDIR}/geosite.dat.new" "$DOWNLOAD_LINK_GEOSITE"; then
|
|
||||||
echo 'error: Download failed! Please check your network or try again.'
|
|
||||||
EXIT 4
|
|
||||||
fi
|
|
||||||
if ! curl -s -L -H 'Cache-Control: no-cache' -o "${TEMPDIR}/geosite.dat.sha256sum.new" "$DOWNLOAD_LINK_GEOSITE.sha256sum"; then
|
|
||||||
echo 'error: Download failed! Please check your network or try again.'
|
|
||||||
EXIT 5
|
|
||||||
fi
|
|
||||||
SUM="$(sha256sum ${TEMPDIR}/geosite.dat.new | sed 's/ .*//')"
|
|
||||||
CHECKSUM="$(sed 's/ .*//' ${TEMPDIR}/geosite.dat.sha256sum.new)"
|
|
||||||
if [[ "$SUM" != "$CHECKSUM" ]]; then
|
|
||||||
echo 'error: Check failed! Please check your network or try again.'
|
|
||||||
EXIT 6
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rename_new() {
|
|
||||||
for DAT in 'geoip' 'geosite'; do
|
|
||||||
mv "${TEMPDIR}/$DAT.dat.new" "${WORKDIR}/$DAT.dat"
|
|
||||||
# rm "${TEMPDIR}/$DAT.dat.new"
|
|
||||||
rm "${TEMPDIR}/$DAT.dat.sha256sum.new"
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getdns() {
|
getdns() {
|
||||||
|
|
|
@ -10,12 +10,21 @@ TMPDIR=$(mktemp -d) || exit 1
|
||||||
#wget https://cdn.jsdelivr.net/gh/QiuSimons/openwrt-mos@master/luci-app-mosdns/root/etc/mosdns/serverlist.txt -nv -O /tmp/mosdns/serverlist.txt
|
#wget https://cdn.jsdelivr.net/gh/QiuSimons/openwrt-mos@master/luci-app-mosdns/root/etc/mosdns/serverlist.txt -nv -O /tmp/mosdns/serverlist.txt
|
||||||
getdat geoip.dat
|
getdat geoip.dat
|
||||||
getdat geosite.dat
|
getdat geosite.dat
|
||||||
getdat serverlist.txt
|
find "$TMPDIR"/* -size -20k -exec rm {} \;
|
||||||
|
|
||||||
syncconfig=$(uci -q get mosdns.mosdns.syncconfig)
|
syncconfig=$(uci -q get mosdns.mosdns.syncconfig)
|
||||||
if [ "$syncconfig" -eq 1 ]; then
|
if [ "$syncconfig" -eq 1 ]; then
|
||||||
#wget https://cdn.jsdelivr.net/gh/QiuSimons/openwrt-mos@master/luci-app-mosdns/root/etc/mosdns/def_config.yaml -nv -O /tmp/mosdns/def_config.yaml
|
#wget https://cdn.jsdelivr.net/gh/QiuSimons/openwrt-mos@master/luci-app-mosdns/root/etc/mosdns/def_config.yaml -nv -O /tmp/mosdns/def_config.yaml
|
||||||
getdat def_config.yaml
|
getdat def_config.yaml
|
||||||
|
find "$TMPDIR"/* -size -2k -exec rm {} \;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cp -rf "$TMPDIR"/* /usr/share/v2ray
|
||||||
|
rm -rf "$TMPDIR"
|
||||||
|
|
||||||
|
TMPDIR=$(mktemp -d) || exit 2
|
||||||
|
getdat serverlist.txt
|
||||||
|
find "$TMPDIR"/* -size -20k -exec rm {} \;
|
||||||
|
cp -rf "$TMPDIR"/* /etc/mosdns
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -3571,6 +3571,7 @@ aoyou2.top
|
||||||
aoyou3.top
|
aoyou3.top
|
||||||
aoyou4.top
|
aoyou4.top
|
||||||
ap-srv.net
|
ap-srv.net
|
||||||
|
ap3lorf0il.com
|
||||||
ap72el.com
|
ap72el.com
|
||||||
apainter.cn
|
apainter.cn
|
||||||
aparvibices.com
|
aparvibices.com
|
||||||
|
@ -5267,6 +5268,7 @@ botsforger.com.cn
|
||||||
boubeeth.com
|
boubeeth.com
|
||||||
boudja.com
|
boudja.com
|
||||||
boudougu.com
|
boudougu.com
|
||||||
|
boudutoo.net
|
||||||
boughtinvulnerablenothing.com
|
boughtinvulnerablenothing.com
|
||||||
bouillerines.site
|
bouillerines.site
|
||||||
boulevardgoodnesslassitude.com
|
boulevardgoodnesslassitude.com
|
||||||
|
@ -7971,6 +7973,7 @@ detectivesrecoilatmospheric.com
|
||||||
detectorvenomouscutlery.com
|
detectorvenomouscutlery.com
|
||||||
detectvid.com
|
detectvid.com
|
||||||
deteran.club
|
deteran.club
|
||||||
|
detergentpanties.com
|
||||||
deterindependentblocked.com
|
deterindependentblocked.com
|
||||||
deterioratesynonymcrockery.com
|
deterioratesynonymcrockery.com
|
||||||
determine-month-upward-shoot.xyz
|
determine-month-upward-shoot.xyz
|
||||||
|
@ -8016,6 +8019,7 @@ dfmngtubtdfxnq.com
|
||||||
dfseafood.com
|
dfseafood.com
|
||||||
dftvhvapqxs.xyz
|
dftvhvapqxs.xyz
|
||||||
dfxofvzd.com
|
dfxofvzd.com
|
||||||
|
dfydnyk.cn
|
||||||
dgafgadsgkjg.top
|
dgafgadsgkjg.top
|
||||||
dgaoz.com
|
dgaoz.com
|
||||||
dgbaozhuang.cn
|
dgbaozhuang.cn
|
||||||
|
@ -8250,6 +8254,7 @@ dk4ywix.com
|
||||||
dk57sacpbi4by.cloudfront.net
|
dk57sacpbi4by.cloudfront.net
|
||||||
dkjdnq.cn
|
dkjdnq.cn
|
||||||
dkjrvgfozzhc.com
|
dkjrvgfozzhc.com
|
||||||
|
dkksrclpfqmmtp.com
|
||||||
dkm6b5q0h53z4.cloudfront.net
|
dkm6b5q0h53z4.cloudfront.net
|
||||||
dkre4lyk6a9bt.cloudfront.net
|
dkre4lyk6a9bt.cloudfront.net
|
||||||
dkuiefdtuwnfo.com
|
dkuiefdtuwnfo.com
|
||||||
|
@ -8978,6 +8983,7 @@ eeftordu.net
|
||||||
eefxjexuwls.com
|
eefxjexuwls.com
|
||||||
eeghegak.com
|
eeghegak.com
|
||||||
eegnacou.com
|
eegnacou.com
|
||||||
|
eekdjxqjlrx.com
|
||||||
eekdwmda.com
|
eekdwmda.com
|
||||||
eeksidro.com
|
eeksidro.com
|
||||||
eelfadechi.com
|
eelfadechi.com
|
||||||
|
@ -9021,6 +9027,7 @@ efjbjykvyxpil.com
|
||||||
efmqnhbbqyko.xyz
|
efmqnhbbqyko.xyz
|
||||||
efpvhqdw.xyz
|
efpvhqdw.xyz
|
||||||
efukheretool.com
|
efukheretool.com
|
||||||
|
egbsisnv.xyz
|
||||||
egeisterytele.xyz
|
egeisterytele.xyz
|
||||||
egfqtvewksktz.com
|
egfqtvewksktz.com
|
||||||
eggglove.com
|
eggglove.com
|
||||||
|
@ -9488,6 +9495,7 @@ exdynsrv.com
|
||||||
exelate.com
|
exelate.com
|
||||||
exelator.com
|
exelator.com
|
||||||
exemix.com
|
exemix.com
|
||||||
|
exemph.com
|
||||||
exemplarfilthy.com
|
exemplarfilthy.com
|
||||||
exercially.mobi
|
exercially.mobi
|
||||||
exgrao.cn
|
exgrao.cn
|
||||||
|
@ -9495,6 +9503,7 @@ exgt.xyz
|
||||||
exhaustedannulmentaccredited.com
|
exhaustedannulmentaccredited.com
|
||||||
exhaustedgemini.com
|
exhaustedgemini.com
|
||||||
exhibitedderivedremarkable.com
|
exhibitedderivedremarkable.com
|
||||||
|
exhmuxe.cn
|
||||||
exi8ef83z9.com
|
exi8ef83z9.com
|
||||||
existsobey.com
|
existsobey.com
|
||||||
exit76.com
|
exit76.com
|
||||||
|
@ -13510,6 +13519,7 @@ jogbxpg.cn
|
||||||
johays.co
|
johays.co
|
||||||
johtzj.com
|
johtzj.com
|
||||||
joicky.com
|
joicky.com
|
||||||
|
joinbrand.club
|
||||||
joiningpreferencemobile.com
|
joiningpreferencemobile.com
|
||||||
joinnowinstantly.com
|
joinnowinstantly.com
|
||||||
jokelibellous.com
|
jokelibellous.com
|
||||||
|
@ -13830,6 +13840,7 @@ kaafu.cn
|
||||||
kaelpossible.pro
|
kaelpossible.pro
|
||||||
kagdf.com
|
kagdf.com
|
||||||
kagrooxa.net
|
kagrooxa.net
|
||||||
|
kahrpinvritz.com
|
||||||
kaifiluk.com
|
kaifiluk.com
|
||||||
kaiguangdou.com
|
kaiguangdou.com
|
||||||
kaihutai.cn
|
kaihutai.cn
|
||||||
|
@ -13996,6 +14007,7 @@ khaate.com
|
||||||
khandragthresh.com
|
khandragthresh.com
|
||||||
khayatarai.com
|
khayatarai.com
|
||||||
khcbilxtj.com
|
khcbilxtj.com
|
||||||
|
khdokfxtwniknb.top
|
||||||
khewwakrywmgxr.com
|
khewwakrywmgxr.com
|
||||||
khg97644rvbg.com
|
khg97644rvbg.com
|
||||||
khovdimina.com
|
khovdimina.com
|
||||||
|
@ -14021,6 +14033,7 @@ kikoucuy.net
|
||||||
kilin.xyz
|
kilin.xyz
|
||||||
killerparadehay.com
|
killerparadehay.com
|
||||||
killingwirelesshumiliation.com
|
killingwirelesshumiliation.com
|
||||||
|
kiltyyoginis.com
|
||||||
kindads.com
|
kindads.com
|
||||||
kindeargrain.com
|
kindeargrain.com
|
||||||
kindlyfeebleremembered.com
|
kindlyfeebleremembered.com
|
||||||
|
@ -14805,6 +14818,7 @@ liveadexchanger.com
|
||||||
liveappgirl.net
|
liveappgirl.net
|
||||||
livecheersharder.com
|
livecheersharder.com
|
||||||
livehapp.com
|
livehapp.com
|
||||||
|
liveinpassion.club
|
||||||
liveintent.com
|
liveintent.com
|
||||||
livelihoodpracticaloperating.com
|
livelihoodpracticaloperating.com
|
||||||
livelylaugh.com
|
livelylaugh.com
|
||||||
|
@ -15333,6 +15347,7 @@ malinesmanses.com
|
||||||
mall0.qiyipic.com
|
mall0.qiyipic.com
|
||||||
mall043.com
|
mall043.com
|
||||||
mallowsmother.com
|
mallowsmother.com
|
||||||
|
maltiverse.lt.acemlnc.com
|
||||||
mamababu.cn
|
mamababu.cn
|
||||||
mamihlapinatana.xyz
|
mamihlapinatana.xyz
|
||||||
mammaevict.com
|
mammaevict.com
|
||||||
|
@ -16869,6 +16884,7 @@ noawhupt.net
|
||||||
noblefun.net
|
noblefun.net
|
||||||
noblemandrovebreeches.com
|
noblemandrovebreeches.com
|
||||||
noblemanscramblemoderately.com
|
noblemanscramblemoderately.com
|
||||||
|
noblemeantimeawelessaweless.com
|
||||||
noblift.mobi
|
noblift.mobi
|
||||||
noclef.com
|
noclef.com
|
||||||
nodecrisp.com
|
nodecrisp.com
|
||||||
|
@ -17954,6 +17970,7 @@ partners.hostgator.com
|
||||||
partners.priceline.com
|
partners.priceline.com
|
||||||
partners.rochen.com
|
partners.rochen.com
|
||||||
partners.wrike.com
|
partners.wrike.com
|
||||||
|
partnershipknackcloset.com
|
||||||
partouba.com
|
partouba.com
|
||||||
partoukfar.co
|
partoukfar.co
|
||||||
partssubquery.com
|
partssubquery.com
|
||||||
|
@ -18041,6 +18058,7 @@ pcmzn.com
|
||||||
pcnp.xyz
|
pcnp.xyz
|
||||||
pcshijie.cn
|
pcshijie.cn
|
||||||
pcshuju.com
|
pcshuju.com
|
||||||
|
pcsyendormup.com
|
||||||
pctlwm.com
|
pctlwm.com
|
||||||
pctracking.net
|
pctracking.net
|
||||||
pctsrv.com
|
pctsrv.com
|
||||||
|
@ -18610,12 +18628,14 @@ popwang.top
|
||||||
popwin.net
|
popwin.net
|
||||||
popwow.xyz
|
popwow.xyz
|
||||||
popxyz.com
|
popxyz.com
|
||||||
|
porase.com
|
||||||
poredii.com
|
poredii.com
|
||||||
poresresigntun.com
|
poresresigntun.com
|
||||||
porngraph.com
|
porngraph.com
|
||||||
pornlemon.com
|
pornlemon.com
|
||||||
pornomixfree.com
|
pornomixfree.com
|
||||||
porntrack.com
|
porntrack.com
|
||||||
|
porntry.com
|
||||||
porojo.net
|
porojo.net
|
||||||
portablefish.com
|
portablefish.com
|
||||||
portalisimmo.com
|
portalisimmo.com
|
||||||
|
@ -20312,6 +20332,7 @@ ritualwarily.com
|
||||||
ritzykey.com
|
ritzykey.com
|
||||||
riverhit.com
|
riverhit.com
|
||||||
riverpush.com
|
riverpush.com
|
||||||
|
rivulussati.com
|
||||||
rixaka.com
|
rixaka.com
|
||||||
riycecerfpjreyx.xyz
|
riycecerfpjreyx.xyz
|
||||||
riziftoo.com
|
riziftoo.com
|
||||||
|
@ -20699,6 +20720,7 @@ sabio.us
|
||||||
sabredwillble.com
|
sabredwillble.com
|
||||||
sabs-push.xyz
|
sabs-push.xyz
|
||||||
sabsmismake.casa
|
sabsmismake.casa
|
||||||
|
sackswaycheese.com
|
||||||
sacralcabaa.com
|
sacralcabaa.com
|
||||||
sacredperpetratorbasketball.com
|
sacredperpetratorbasketball.com
|
||||||
sadassemblybladder.com
|
sadassemblybladder.com
|
||||||
|
@ -22738,6 +22760,7 @@ tdedqqv.cn
|
||||||
tdjc.shop
|
tdjc.shop
|
||||||
tdtsd.com
|
tdtsd.com
|
||||||
tdtxjhel.com
|
tdtxjhel.com
|
||||||
|
teacher1.shop
|
||||||
teads.tv
|
teads.tv
|
||||||
teakreese.com
|
teakreese.com
|
||||||
tealeaf.com
|
tealeaf.com
|
||||||
|
@ -23377,6 +23400,7 @@ tqlkg.com
|
||||||
tqlyjz.cn
|
tqlyjz.cn
|
||||||
tqmibkqlwqdysi.com
|
tqmibkqlwqdysi.com
|
||||||
tqpay.top
|
tqpay.top
|
||||||
|
tqrvftsbdagk.xyz
|
||||||
tqxdhokpeigv.com
|
tqxdhokpeigv.com
|
||||||
tr563.com
|
tr563.com
|
||||||
tr691.cn
|
tr691.cn
|
||||||
|
@ -23513,6 +23537,7 @@ traktrafficflow.com
|
||||||
tramcarnamby.cam
|
tramcarnamby.cam
|
||||||
trandlife.info
|
trandlife.info
|
||||||
tranquilside.com
|
tranquilside.com
|
||||||
|
transientspecialowl.com
|
||||||
transmittericilysunstroke.com
|
transmittericilysunstroke.com
|
||||||
transmitterremember.com
|
transmitterremember.com
|
||||||
traost.com
|
traost.com
|
||||||
|
@ -23691,6 +23716,7 @@ tuan512.cn
|
||||||
tuateramiking.com
|
tuateramiking.com
|
||||||
tubberlo.com
|
tubberlo.com
|
||||||
tubecorp.com
|
tubecorp.com
|
||||||
|
tubefdghxqkgb.com
|
||||||
tubemogul.com
|
tubemogul.com
|
||||||
tubemov.com
|
tubemov.com
|
||||||
tudotecnologia.site
|
tudotecnologia.site
|
||||||
|
@ -24607,6 +24633,7 @@ vivtracking.com
|
||||||
vixnixxer.com
|
vixnixxer.com
|
||||||
viyuieubw.top
|
viyuieubw.top
|
||||||
vizaiced.net
|
vizaiced.net
|
||||||
|
vjafttweylg.xyz
|
||||||
vjgenkfqjqng.com
|
vjgenkfqjqng.com
|
||||||
vjkjjhbi.com
|
vjkjjhbi.com
|
||||||
vjnpoelbrhd.com
|
vjnpoelbrhd.com
|
||||||
|
@ -24714,6 +24741,7 @@ vpnmfqas.cn
|
||||||
vpnrequired.com
|
vpnrequired.com
|
||||||
vpon.com
|
vpon.com
|
||||||
vptbn.com
|
vptbn.com
|
||||||
|
vpyigbyjony.top
|
||||||
vpyqdlrweoc.com
|
vpyqdlrweoc.com
|
||||||
vq7736.com
|
vq7736.com
|
||||||
vqlrwgj.cn
|
vqlrwgj.cn
|
||||||
|
@ -24805,6 +24833,7 @@ vwraggcs.xyz
|
||||||
vwuyuahqf.com
|
vwuyuahqf.com
|
||||||
vxhmytfndmqko.com
|
vxhmytfndmqko.com
|
||||||
vxjvcwc.cn
|
vxjvcwc.cn
|
||||||
|
vxqaxvqotu.xyz
|
||||||
vxrpmslex.com
|
vxrpmslex.com
|
||||||
vxsnk.com
|
vxsnk.com
|
||||||
vy4e3jw46l.com
|
vy4e3jw46l.com
|
||||||
|
@ -24964,6 +24993,7 @@ waveclks.com
|
||||||
wavysumatone.cam
|
wavysumatone.cam
|
||||||
waxpigbaa.com
|
waxpigbaa.com
|
||||||
waxtamnit.com
|
waxtamnit.com
|
||||||
|
wayexiaofei.club
|
||||||
wayfarerspoutpraise.com
|
wayfarerspoutpraise.com
|
||||||
waynagmay.com
|
waynagmay.com
|
||||||
wazensee.net
|
wazensee.net
|
||||||
|
@ -26370,6 +26400,7 @@ yg10x.cn
|
||||||
yg592gpmrh0q.com
|
yg592gpmrh0q.com
|
||||||
ygblogtag.cn
|
ygblogtag.cn
|
||||||
ygcxcqgsnemsb.com
|
ygcxcqgsnemsb.com
|
||||||
|
ygfwbczu.com
|
||||||
yggcfcirw.xyz
|
yggcfcirw.xyz
|
||||||
yggkzs.cn
|
yggkzs.cn
|
||||||
yggzrdiq.com
|
yggzrdiq.com
|
||||||
|
@ -26886,6 +26917,7 @@ zdyldoijanx.com
|
||||||
zdzk0371.cn
|
zdzk0371.cn
|
||||||
zdzy.shop
|
zdzy.shop
|
||||||
zeads.com
|
zeads.com
|
||||||
|
zealotsick.com
|
||||||
zealousfield.com
|
zealousfield.com
|
||||||
zeasis.com
|
zeasis.com
|
||||||
zebruisiacu.com
|
zebruisiacu.com
|
||||||
|
@ -26979,6 +27011,7 @@ zhaoanhu.vip
|
||||||
zhaosijie.cn
|
zhaosijie.cn
|
||||||
zhaovip.site
|
zhaovip.site
|
||||||
zhaoyafang.cn
|
zhaoyafang.cn
|
||||||
|
zhaoyiqi.ltd
|
||||||
zhcmuccccixz.com
|
zhcmuccccixz.com
|
||||||
zhcps.cn
|
zhcps.cn
|
||||||
zhekoudajie.com
|
zhekoudajie.com
|
||||||
|
|
|
@ -50,7 +50,8 @@ if [ -f "/tmp/openclash.bak" ]; then
|
||||||
rm -rf "/etc/openclash/openclash" >/dev/null 2>&1
|
rm -rf "/etc/openclash/openclash" >/dev/null 2>&1
|
||||||
rm -rf "/etc/openclash/fake_filter.list" >/dev/null 2>&1
|
rm -rf "/etc/openclash/fake_filter.list" >/dev/null 2>&1
|
||||||
rm -rf "/etc/openclash/openclash_servers_fake_filter.conf" >/dev/null 2>&1
|
rm -rf "/etc/openclash/openclash_servers_fake_filter.conf" >/dev/null 2>&1
|
||||||
rm -rf "/tmp/openclash*" >/dev/null 2>&1
|
rm -rf "/tmp/openclash" >/dev/null 2>&1
|
||||||
|
rm -rf "/tmp/openclash.bak" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source "/etc/openwrt_release"
|
source "/etc/openwrt_release"
|
||||||
|
|
|
@ -19,12 +19,12 @@ set_lock
|
||||||
if [ "$CKTIME" != "$(grep "CheckTime" $LAST_OPVER 2>/dev/null |awk -F ':' '{print $2}')" ]; then
|
if [ "$CKTIME" != "$(grep "CheckTime" $LAST_OPVER 2>/dev/null |awk -F ':' '{print $2}')" ]; then
|
||||||
if [ "$github_address_mod" != "0" ]; then
|
if [ "$github_address_mod" != "0" ]; then
|
||||||
if [ "$github_address_mod" == "https://cdn.jsdelivr.net/" ]; then
|
if [ "$github_address_mod" == "https://cdn.jsdelivr.net/" ]; then
|
||||||
curl -sL --connect-timeout 5 --retry 2 https://cdn.jsdelivr.net/gh/vernesong/OpenClash@"$RELEASE_BRANCH"/core_version -o $LAST_OPVER >/dev/null 2>&1
|
curl -sL -m 3 --retry 2 https://cdn.jsdelivr.net/gh/vernesong/OpenClash@"$RELEASE_BRANCH"/core_version -o $LAST_OPVER >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
curl -sL --connect-timeout 5 --retry 2 "$github_address_mod"https://raw.githubusercontent.com/vernesong/OpenClash/"$RELEASE_BRANCH"/core_version -o $LAST_OPVER >/dev/null 2>&1
|
curl -sL -m 3 --retry 2 "$github_address_mod"https://raw.githubusercontent.com/vernesong/OpenClash/"$RELEASE_BRANCH"/core_version -o $LAST_OPVER >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
curl -sL --connect-timeout 5 --retry 2 https://raw.githubusercontent.com/vernesong/OpenClash/"$RELEASE_BRANCH"/core_version -o $LAST_OPVER >/dev/null 2>&1
|
curl -sL -m 3 --retry 2 https://raw.githubusercontent.com/vernesong/OpenClash/"$RELEASE_BRANCH"/core_version -o $LAST_OPVER >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$?" -eq "0" ] && [ -s "$LAST_OPVER" ]; then
|
if [ "$?" -eq "0" ] && [ -s "$LAST_OPVER" ]; then
|
||||||
|
|
|
@ -9,12 +9,12 @@ github_address_mod=$(uci -q get openclash.config.github_address_mod || echo 0)
|
||||||
if [ "$CKTIME" != "$(grep "CheckTime" $LAST_OPVER 2>/dev/null |awk -F ':' '{print $2}')" ]; then
|
if [ "$CKTIME" != "$(grep "CheckTime" $LAST_OPVER 2>/dev/null |awk -F ':' '{print $2}')" ]; then
|
||||||
if [ "$github_address_mod" != "0" ]; then
|
if [ "$github_address_mod" != "0" ]; then
|
||||||
if [ "$github_address_mod" == "https://cdn.jsdelivr.net/" ]; then
|
if [ "$github_address_mod" == "https://cdn.jsdelivr.net/" ]; then
|
||||||
curl -sL -m 5 --retry 2 https://cdn.jsdelivr.net/gh/vernesong/OpenClash@"$RELEASE_BRANCH"/version -o $LAST_OPVER >/dev/null 2>&1
|
curl -sL -m 3 --retry 2 https://cdn.jsdelivr.net/gh/vernesong/OpenClash@"$RELEASE_BRANCH"/version -o $LAST_OPVER >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
curl -sL -m 5 --retry 2 "$github_address_mod"https://raw.githubusercontent.com/vernesong/OpenClash/"$RELEASE_BRANCH"/version -o $LAST_OPVER >/dev/null 2>&1
|
curl -sL -m 3 --retry 2 "$github_address_mod"https://raw.githubusercontent.com/vernesong/OpenClash/"$RELEASE_BRANCH"/version -o $LAST_OPVER >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
curl -sL -m 5 --retry 2 https://raw.githubusercontent.com/vernesong/OpenClash/"$RELEASE_BRANCH"/version -o $LAST_OPVER >/dev/null 2>&1
|
curl -sL -m 3 --retry 2 https://raw.githubusercontent.com/vernesong/OpenClash/"$RELEASE_BRANCH"/version -o $LAST_OPVER >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$?" -eq "0" ] && [ -s "$LAST_OPVER" ]; then
|
if [ "$?" -eq "0" ] && [ -s "$LAST_OPVER" ]; then
|
||||||
|
|
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
LUCI_TITLE:=LuCI based ipk store
|
LUCI_TITLE:=LuCI based ipk store
|
||||||
LUCI_DESCRIPTION:=luci-app-store is a ipk store developed by LinkEase team
|
LUCI_DESCRIPTION:=luci-app-store is a ipk store developed by LinkEase team
|
||||||
LUCI_DEPENDS:=+curl +opkg +luci-lib-ipkg
|
LUCI_DEPENDS:=+curl +opkg +luci-base
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
|
|
||||||
PKG_VERSION:=0.1.7
|
PKG_VERSION:=0.1.7
|
||||||
|
|
Loading…
Reference in New Issue