summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-07 18:25:37 +0000
committerErmal <eri@pfsense.org>2010-12-07 18:25:37 +0000
commit422bc2a7f3f4bf5a922a23575b6499225d1a166d (patch)
treea6dc4c8694609d52344de3b82ee607f33b033d4f
parent8c41a3e42d36ea921e9fe0c5c0a61870b55758f4 (diff)
downloadpfsense-422bc2a7f3f4bf5a922a23575b6499225d1a166d.zip
pfsense-422bc2a7f3f4bf5a922a23575b6499225d1a166d.tar.gz
Move all dynamic dns update processes under the same even 'reload dyndns' since it makes sense to do so.
-rw-r--r--etc/inc/interfaces.inc5
-rwxr-xr-xetc/rc.bootup10
-rwxr-xr-xetc/rc.dyndns.update7
3 files changed, 9 insertions, 13 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index cfce316..de359f3 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2598,10 +2598,7 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
services_dnsmasq_configure();
/* update dyndns */
- services_dyndns_configure($interface);
-
- /* force DNS update */
- services_dnsupdate_process($interface);
+ send_event("service reload dyndns {$interface}");
/* reload captive portal */
captiveportal_init_rules();
diff --git a/etc/rc.bootup b/etc/rc.bootup
index a7d3e8c..0d43103 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -293,10 +293,6 @@ echo "done.\n";
/* Launch on bootup and keep trying to sync. Exit once time/date has been sync'd. */
mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh");
-/* static IP address? -> attempt DNS update */
-if (is_ipaddr($config['interfaces']['wan']['ipaddr']))
- services_dnsupdate_process();
-
/* start DHCP service */
services_dhcpd_configure();
@@ -306,12 +302,12 @@ services_dnsmasq_configure();
/* start dhcpleases dhpcp hosts leases program */
system_dhcpleases_configure();
-/* start dyndns service */
-send_event("service reload dyndnsall");
-
/* start DHCP relay */
services_dhcrelay_configure();
+/* dyndns service updates */
+send_event("service reload dyndnsall");
+
/* Run a filter configure now that most all services have started */
filter_configure_sync();
diff --git a/etc/rc.dyndns.update b/etc/rc.dyndns.update
index a84cadd..557113c 100755
--- a/etc/rc.dyndns.update
+++ b/etc/rc.dyndns.update
@@ -38,9 +38,12 @@ require_once("shaper.inc");
$argument = trim($argv[1], " \n");
-if(empty($argument))
+if(empty($argument)) {
services_dyndns_configure();
-else
+ services_dnsupdate_process();
+} else {
services_dyndns_configure($argument);
+ services_dnsupdate_process($argument);
+}
?>
OpenPOWER on IntegriCloud