summaryrefslogtreecommitdiffstats
path: root/main/djbdns/dnscache.monthly
diff options
context:
space:
mode:
Diffstat (limited to 'main/djbdns/dnscache.monthly')
-rwxr-xr-xmain/djbdns/dnscache.monthly6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/djbdns/dnscache.monthly b/main/djbdns/dnscache.monthly
index 4e53fd6fd..574d56f01 100755
--- a/main/djbdns/dnscache.monthly
+++ b/main/djbdns/dnscache.monthly
@@ -19,7 +19,7 @@ for ZONEFILE in $ZONES; do
cp -f "$DST" "$ZONEFILE"
fi
- if [ "$ZONE" == "@" ]; then
+ if [ "$ZONE" = "@" ]; then
ZONE="."
fi
@@ -28,9 +28,7 @@ for ZONEFILE in $ZONES; do
# Refresh zone info
dnsqr ns $ZONE | awk '/^answer: ./ { print $5 }' | sort -u | xargs dnsip > $TMPF
-
- grep "^$" $TMPF 1> /dev/null
- if [ $? != 0 ]; then
+ if egrep -q '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' $TMPF; then
cmp -s $ZONEFILE $TMPF
if [ "$?" != 0 ]; then
NEEDRESTART=yes