summaryrefslogtreecommitdiffstats
path: root/etc/rc.dyndns.update
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-12-11 11:44:38 +0000
committerErmal Luçi <eri@pfsense.org>2009-12-11 11:44:38 +0000
commit55bd0d738cc14358031e57fd14ccfd9064a5eded (patch)
tree572042b5c234b3d0268a9522c710c6a1650eb523 /etc/rc.dyndns.update
parent0be93267a678021ab9c5de04be0976e83cd17011 (diff)
downloadpfsense-55bd0d738cc14358031e57fd14ccfd9064a5eded.zip
pfsense-55bd0d738cc14358031e57fd14ccfd9064a5eded.tar.gz
Try to update only one interface if we are asked so.
Diffstat (limited to 'etc/rc.dyndns.update')
-rwxr-xr-xetc/rc.dyndns.update11
1 files changed, 9 insertions, 2 deletions
diff --git a/etc/rc.dyndns.update b/etc/rc.dyndns.update
index 15079c9..87c6af9 100755
--- a/etc/rc.dyndns.update
+++ b/etc/rc.dyndns.update
@@ -34,6 +34,13 @@ require_once("functions.inc");
require_once("filter.inc");
require_once("shaper.inc");
-services_dyndns_configure();
+/* Interface IP address has changed */
-?> \ No newline at end of file
+$argument = str_replace("\n", "", $argv[1]);
+
+if(empty($argument))
+ services_dyndns_configure();
+else
+ services_dyndns_configure($argument);
+
+?>
OpenPOWER on IntegriCloud