Commit 919d6a28 authored by Franco Fichtner's avatar Franco Fichtner

rc: can't be unconditional

parent 32bc30aa
...@@ -413,15 +413,15 @@ function console_configure_dhcpd($version = 4) ...@@ -413,15 +413,15 @@ function console_configure_dhcpd($version = 4)
$config[$dhcpd][$interface]['enable'] = true; $config[$dhcpd][$interface]['enable'] = true;
$config[$dhcpd][$interface]['range']['from'] = $dhcpstartip; $config[$dhcpd][$interface]['range']['from'] = $dhcpstartip;
$config[$dhcpd][$interface]['range']['to'] = $dhcpendip; $config[$dhcpd][$interface]['range']['to'] = $dhcpendip;
echo "\n";
} else { } else {
if (isset($config[$dhcpd][$interface]['enable'])) { if (isset($config[$dhcpd][$interface]['enable'])) {
unset($config[$dhcpd][$interface]['enable']); unset($config[$dhcpd][$interface]['enable']);
printf('Disabling %s DHCPD...', $label_IPvX); printf('Disabling %s DHCPD...', $label_IPvX);
$restart_dhcpd = true; $restart_dhcpd = true;
echo "\n";
} }
} }
echo "\n";
} }
console_configure_dhcpd(4); console_configure_dhcpd(4);
......
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