summaryrefslogtreecommitdiffstats
path: root/etc/rc.dyndns.update
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.dyndns.update')
-rwxr-xr-xetc/rc.dyndns.update7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/rc.dyndns.update b/etc/rc.dyndns.update
index 557113c..501373d 100755
--- a/etc/rc.dyndns.update
+++ b/etc/rc.dyndns.update
@@ -42,8 +42,11 @@ if(empty($argument)) {
services_dyndns_configure();
services_dnsupdate_process();
} else {
- services_dyndns_configure($argument);
- services_dnsupdate_process($argument);
+ $interface = lookup_gateway_interface_by_name($argument);
+ if (empty($interface))
+ $interface = $argument;
+ services_dyndns_configure($interface);
+ services_dnsupdate_process($interface);
}
?>
OpenPOWER on IntegriCloud