mirror of
https://github.com/tanrax/maza-ad-blocking.git
synced 2024-11-22 15:15:41 +01:00
Update maza
This commit is contained in:
parent
794b5d3d77
commit
3e355648e7
3
maza
3
maza
@ -4,6 +4,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# VARIABLES
|
# VARIABLES
|
||||||
|
URL_DNS_LIST="https://pgl.yoyo.org/adservers/serverlist.php?showintro=0&mimetype=plaintext"
|
||||||
NAME_OSX="Darwin"
|
NAME_OSX="Darwin"
|
||||||
THIS_OS=$(uname -mrs)
|
THIS_OS=$(uname -mrs)
|
||||||
PROGNAME=$(basename $0)
|
PROGNAME=$(basename $0)
|
||||||
@ -75,7 +76,7 @@ update() {
|
|||||||
rm -f $CONFIG$LIST_DNSMASQ
|
rm -f $CONFIG$LIST_DNSMASQ
|
||||||
mkdir -p $CONFIG
|
mkdir -p $CONFIG
|
||||||
# Download DNS list
|
# Download DNS list
|
||||||
curl -L -s "https://pgl.yoyo.org/adservers/serverlist.php?showintro=0&mimetype=plaintext" -o "$CONFIG$LIST"
|
curl -L -s "$URL_DNS_LIST" -o "$CONFIG$LIST"
|
||||||
# Clear list
|
# Clear list
|
||||||
## Remove comments
|
## Remove comments
|
||||||
custom-sed -i.bak '/^#/ d' "$CONFIG$LIST"
|
custom-sed -i.bak '/^#/ d' "$CONFIG$LIST"
|
||||||
|
Loading…
Reference in New Issue
Block a user