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