mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
luci-app-unblockmusic: Refresh ipset music list when ifup (#4576)
* luci-app-unblockmusic: Refresh ipset music list when ifup * Update 099-unblockmusic
This commit is contained in:
parent
f8099f4c95
commit
684bce1183
@ -3,4 +3,5 @@
|
|||||||
[ "$ACTION" = ifup ] || exit 0
|
[ "$ACTION" = ifup ] || exit 0
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
ipset flush music 2>/dev/null
|
||||||
/usr/share/UnblockNeteaseMusic/getmusicip.sh
|
/usr/share/UnblockNeteaseMusic/getmusicip.sh
|
||||||
|
@ -111,6 +111,7 @@ del_rule(){
|
|||||||
$ipt_n -X CLOUD_MUSIC 2>/dev/null
|
$ipt_n -X CLOUD_MUSIC 2>/dev/null
|
||||||
iptables -D OUTPUT -d 223.252.199.10 -j DROP 2>/dev/null
|
iptables -D OUTPUT -d 223.252.199.10 -j DROP 2>/dev/null
|
||||||
|
|
||||||
|
ipset flush music 2>/dev/null
|
||||||
ipset -X music_http 2>/dev/null
|
ipset -X music_http 2>/dev/null
|
||||||
ipset -X music_https 2>/dev/null
|
ipset -X music_https 2>/dev/null
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ while true
|
|||||||
do
|
do
|
||||||
icount=`busybox ps -w | grep UnblockNeteaseMusic | grep -v grep | grep -v logcheck.sh`
|
icount=`busybox ps -w | grep UnblockNeteaseMusic | grep -v grep | grep -v logcheck.sh`
|
||||||
if [ -z "$icount" ]; then
|
if [ -z "$icount" ]; then
|
||||||
/usr/share/UnblockNeteaseMusic/getmusicip.sh
|
|
||||||
/etc/init.d/unblockmusic restart
|
/etc/init.d/unblockmusic restart
|
||||||
fi
|
fi
|
||||||
log_size=$(expr $(ls -l $log_file | awk '{print $5}') / 1024)
|
log_size=$(expr $(ls -l $log_file | awk '{print $5}') / 1024)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user