Fixup dhcpd interface enabled check
This commit is contained in:
parent
ba667cc6f4
commit
a3fad59243
|
@ -395,10 +395,7 @@ function console_configure_dhcpd($version = 4) {
|
|||
$config[$dhcpd][$interface]['range']['from'] = $dhcpstartip;
|
||||
$config[$dhcpd][$interface]['range']['to'] = $dhcpendip;
|
||||
} else {
|
||||
/* TODO - this line is causing a "Fatal error: Cannot unset
|
||||
string offsets in /etc/rc.initial.setlanip" on below line
|
||||
number - Nov 2014 - is it really? */
|
||||
if($config[$dhcpd][$interface]) {
|
||||
if(isset($config[$dhcpd][$interface]['enable'])) {
|
||||
unset($config[$dhcpd][$interface]['enable']);
|
||||
printf(gettext("Disabling %s DHCPD..."), $label_IPvX);
|
||||
$restart_dhcpd = true;
|
||||
|
|
Reference in New Issue