faria
Senior Member
@ thelonelycoder
Please Consider adding a Command/variable to update the whitelist without running the update-hosts.sh
currently i use another script to achive that.
Many thanks for your great work.
Please Consider adding a Command/variable to update the whitelist without running the update-hosts.sh
currently i use another script to achive that.
Code:
# set directory
dir=/tmp/mnt/asus32/adblocking
# remove whitelisted entries in temp and write final file, remove temp file
cp $dir/hosts-adblock $dir/temp
cat $dir/temp | fgrep -vf $dir/whitelist.txt > $dir/hosts-adblock
rm $dir/temp
#restart dnsmasq to apply changes
sleep 1
service restart_dnsmasq
Many thanks for your great work.