summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/crontab2
-rw-r--r--etc/inc/dyndns.class4
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/crontab b/etc/crontab
index 2dac133..1b6b452 100644
--- a/etc/crontab
+++ b/etc/crontab
@@ -11,4 +11,4 @@ HOME=/var/log
1,31 0-5 * * * root /usr/bin/nice -n20 adjkerntz -a
1 * 1 * * root /usr/bin/nice -n20 /etc/rc.update_bogons.sh
*/60 * 1 * * root /usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 sshlockout
-* 2 * * * root /usr/bin/nice -n20 /etc/rc.dyndns.update
+1 2 * * * root /usr/bin/nice -n20 /etc/rc.dyndns.update
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index 64eaa58..b9f543e 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -468,7 +468,7 @@
$this->_debug($cacheIP.'/'.$cacheTime);
- $initial = true;
+ $initial = false;
} else {
$file = fopen($this->_cacheFile, 'w');
fwrite($file, '0.0.0.0:'.$currentTime);
@@ -476,7 +476,7 @@
$cacheIP = '0.0.0.0';
$cacheTime = $currentTime;
- $initial = false;
+ $initial = true;
}
switch ($this->_dnsService) {
OpenPOWER on IntegriCloud