summaryrefslogtreecommitdiffstats
path: root/usr/sbin
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-31 23:08:17 +0000
committerErmal <eri@pfsense.org>2010-03-31 23:08:17 +0000
commit33c017b25a45ec5e763c5f9c6962307f9096174d (patch)
tree3a998b2166e9aa90b7c1cb7c6c9035d6804b2a0b /usr/sbin
parent87f2868788bf7254945650cf58a6230d7bcddd99 (diff)
downloadpfsense-33c017b25a45ec5e763c5f9c6962307f9096174d.zip
pfsense-33c017b25a45ec5e763c5f9c6962307f9096174d.tar.gz
Remove update_dns_cache.sh it seems to have been used for hostnames in the filter ruleset which now is handled quite differently.
Diffstat (limited to 'usr/sbin')
-rwxr-xr-xusr/sbin/update_dns_cache.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/usr/sbin/update_dns_cache.sh b/usr/sbin/update_dns_cache.sh
deleted file mode 100755
index cf58ffb..0000000
--- a/usr/sbin/update_dns_cache.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-mkdir -p /var/db/dnscache
-cd /var/db/dnscache
-
-while [ /bin/true ]; do
- cd /var/db/dnscache
- needsfilterreload=0
- for FILE in *; do
- DNSENTRIES=`host -t A $FILE | awk '/address/ {print $4}' | sort`
- echo "$DNSENTRIES" > /tmp/Njkd98u79.tmp
- CURRENTNR=`cat /tmp/Njkd98u79.tmp | wc -l | awk '{print $1}'`
- OLDNR=`cat $FILE | wc -l | awk '{print $1}'`
- if [ "$CURRENTNR" != "$OLDNR" ]; then
- needsfilterreload=1
- # if the number of hosts is different we reload and skip the rest
- continue
- fi
- # We need to compare the files.
- # We need to compare the files.
- cmp -s /tmp/Njkd98u79.tmp $FILE
- if [ "$?" -gt 0 ]; then
- needsfilterreload=1
- fi
- done
- if [ "$needsfilterreload" -gt 0 ]; then
- /etc/rc.filter_configure_sync
- fi
- sleep 480
-done
OpenPOWER on IntegriCloud