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
cebe8b5d18
commit
f7348e4a6b
24
maza
24
maza
@ -64,27 +64,15 @@ update() {
|
|||||||
sed -i.bak 's/127.0.0.1 /address=\//g' "$CONFIG/$LIST_DNSMASQ"
|
sed -i.bak 's/127.0.0.1 /address=\//g' "$CONFIG/$LIST_DNSMASQ"
|
||||||
sed -i.bak 's/$/\/127.0.0.1/g' "$CONFIG/$LIST_DNSMASQ"
|
sed -i.bak 's/$/\/127.0.0.1/g' "$CONFIG/$LIST_DNSMASQ"
|
||||||
## Add start tag DNS list in first line
|
## Add start tag DNS list in first line
|
||||||
sed -i.bak "1i\\
|
sed -i.bak "1i\\$AUTHOR" "$CONFIG/$LIST"
|
||||||
$AUTHOR
|
sed -i.bak "1i\\$PROJECT" "$CONFIG/$LIST"
|
||||||
" "$CONFIG/$LIST"
|
sed -i.bak "1i\\$START_TAG" "$CONFIG/$LIST"
|
||||||
sed -i.bak "1i\\
|
|
||||||
$PROJECT
|
|
||||||
" "$CONFIG/$LIST"
|
|
||||||
sed -i.bak "1i\\
|
|
||||||
$START_TAG
|
|
||||||
" "$CONFIG/$LIST"
|
|
||||||
## Add end tag DNS list in first line
|
## Add end tag DNS list in first line
|
||||||
echo $END_TAG >> "$CONFIG/$LIST"
|
echo $END_TAG >> "$CONFIG/$LIST"
|
||||||
## Add start tag DNS dnsmasq in first line
|
## Add start tag DNS dnsmasq in first line
|
||||||
sed -i.bak "1i\\
|
sed -i.bak "1i\\$AUTHOR" "$CONFIG/$LIST_DNSMASQ"
|
||||||
$AUTHOR
|
sed -i.bak "1i\\$PROJECT" "$CONFIG/$LIST_DNSMASQ"
|
||||||
" "$CONFIG/$LIST_DNSMASQ"
|
sed -i.bak "1i\\$START_TAG" "$CONFIG/$LIST_DNSMASQ"
|
||||||
sed -i.bak "1i\\
|
|
||||||
$PROJECT
|
|
||||||
" "$CONFIG/$LIST_DNSMASQ"
|
|
||||||
sed -i.bak "1i\\
|
|
||||||
$START_TAG
|
|
||||||
" "$CONFIG/$LIST_DNSMASQ"
|
|
||||||
## Add end tag DNS DNSMASQ in first line
|
## Add end tag DNS DNSMASQ in first line
|
||||||
echo $END_TAG >> "$CONFIG/$LIST_DNSMASQ"
|
echo $END_TAG >> "$CONFIG/$LIST_DNSMASQ"
|
||||||
# Remove temp file
|
# Remove temp file
|
||||||
|
Loading…
Reference in New Issue
Block a user