diff options
-rwxr-xr-x | etc/rc.bootup | 2 | ||||
-rwxr-xr-x | usr/sbin/update_dns_cache.sh | 30 |
2 files changed, 0 insertions, 32 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup index 55c9380..8a93685 100755 --- a/etc/rc.bootup +++ b/etc/rc.bootup @@ -366,8 +366,6 @@ upnp_start(); /* If powerd is enabled, lets launch it */ activate_powerd(); -mwexec_bg("/usr/sbin/update_dns_cache.sh"); - /* done */ unlink("{$g['varrun_path']}/booting"); unset($g['booting']); 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 |