diff options
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-x | etc/rc.newwanip | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 9d3d484..c018cb0 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -78,15 +78,15 @@ system_resolvconf_generate(true); file_put_contents("{$g['vardb_path']}/{$interface}_ip", $curwanip); file_put_contents("{$g['vardb_path']}/{$interface}_cacheip", $curwanip); -if (is_ipaddr($oldip) && $curwanip == $oldip) - exit; - /* reconfigure static routes (kernel may have deleted them) */ system_routing_configure($interface); /* reconfigure our gateway monitor */ setup_gateways_monitor(); +if (is_ipaddr($oldip) && $curwanip == $oldip) + exit; + /* perform RFC 2136 DNS update */ services_dnsupdate_process($interface); |