diff options
author | Ermal <eri@pfsense.org> | 2011-01-03 22:48:55 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-01-03 22:52:59 +0000 |
commit | aa7c49b9d7628858f1510c184f8409f2eeeb08ad (patch) | |
tree | 9c9508be5d43c60adeebc79ccbde3616010a3812 | |
parent | e7c9af97eaf93d74284e1fb5cbfba79171138acd (diff) | |
download | pfsense-aa7c49b9d7628858f1510c184f8409f2eeeb08ad.zip pfsense-aa7c49b9d7628858f1510c184f8409f2eeeb08ad.tar.gz |
Ticket #943. Sleep 1 second to give dns time to reload.
-rw-r--r-- | etc/inc/dyndns.class | 7 | ||||
-rwxr-xr-x | usr/local/sbin/ppp-linkup | 1 |
2 files changed, 3 insertions, 5 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 785c902..da8844e 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -827,10 +827,7 @@ log_error("DynDns: Current WAN IP: {$wan_ip}"); if (file_exists($this->_cacheFile)) { - if(file_exists($this->_cacheFile)) - $contents = file_get_contents($this->_cacheFile); - else - $contents = ""; + $contents = file_get_contents($this->_cacheFile); list($cacheIP,$cacheTime) = split(':', $contents); $this->_debug($cacheIP.'/'.$cacheTime); $initial = false; @@ -933,4 +930,4 @@ } -?>
\ No newline at end of file +?> diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup index dd156c4..a9c0f32 100755 --- a/usr/local/sbin/ppp-linkup +++ b/usr/local/sbin/ppp-linkup @@ -18,5 +18,6 @@ fi /bin/echo $3 > /tmp/$1_ip /usr/bin/touch /tmp/$1up /usr/local/sbin/pfSctl -c 'service reload dns' +/bin/sleep 1 /usr/local/sbin/pfSctl -c "interface newip $1" exit 0 |