Commit b46a48f1 authored by Franco Fichtner's avatar Franco Fichtner

rfc2136: support $verbose for configure #1478

parent 52131f1d
...@@ -121,7 +121,7 @@ function dyndns_configure_do($verbose = false, $int = '') ...@@ -121,7 +121,7 @@ function dyndns_configure_do($verbose = false, $int = '')
} }
if ($verbose) { if ($verbose) {
echo 'Starting dynamic DNS clients...'; echo 'Configuring dynamic DNS clients...';
flush(); flush();
} }
......
...@@ -48,6 +48,11 @@ function rfc2136_configure_do($verbose = false, $int = '', $updatehost = '', $fo ...@@ -48,6 +48,11 @@ function rfc2136_configure_do($verbose = false, $int = '', $updatehost = '', $fo
$notify_text = ''; $notify_text = '';
if ($verbose) {
echo 'Configuring RFC 2136 clients...';
flush();
}
foreach ($config['dnsupdates']['dnsupdate'] as $i => $dnsupdate) { foreach ($config['dnsupdates']['dnsupdate'] as $i => $dnsupdate) {
if (!isset($dnsupdate['enable'])) { if (!isset($dnsupdate['enable'])) {
continue; continue;
...@@ -179,4 +184,8 @@ EOD; ...@@ -179,4 +184,8 @@ EOD;
if (!empty($notify_text)) { if (!empty($notify_text)) {
notify_all_remote($notify_text); notify_all_remote($notify_text);
} }
if ($verbose) {
echo "done.\n";
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment