Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 251 → Rev 252

/scripts/alcasar-dnsfilter-import.sh
24,7 → 24,7
egrep -v "([0-9]{1,3}\.){3}[0-9]{1,3}" $DOMAINE/domains | grep -v "^#" | egrep -v "[äâëêïîöôüû]" > /tmp/dnsmasq-bl.tmp
 
# Insertion du formatage dnsmasq
sed 's?.*?address=/&/$IP_RETOUR?g' /tmp/dnsmasq-bl.tmp && mv /tmp/dnsmasq-bl.tmp $DIR_DEST/dnsmasq-$FIC.conf
sed -i 's?.*?address=/&/$IP_RETOUR?g' /tmp/dnsmasq-bl.tmp && mv /tmp/dnsmasq-bl.tmp $DIR_DEST/dnsmasq-$FIC.conf
#
# echo "address=/$f/$IP_RETOUR" >> $DIR_DEST/dnsmasq-$FIC.conf