Revision 282d4a80
Added by Luiz Souza 8 months ago
src/etc/inc/config.console.inc | ||
---|---|---|
593 | 593 |
return (0); |
594 | 594 |
} |
595 | 595 |
|
596 |
function installer_disable_lan() { |
|
597 |
config_del_path('interfaces/lan'); |
|
598 |
|
|
599 |
return (0); |
|
600 |
} |
|
601 |
|
|
596 | 602 |
function installer_setup_lan($lan) { |
597 | 603 |
|
598 | 604 |
if (!isset($lan->if) || |
... | ... | |
753 | 759 |
|
754 | 760 |
/* LAN setup. */ |
755 | 761 |
if (isset($lan->if) && |
756 |
does_interface_exist($lan->if) && |
|
757 |
installer_setup_lan($lan) != 0) { |
|
758 |
return (-1); |
|
762 |
does_interface_exist($lan->if)) { |
|
763 |
if (installer_setup_lan($lan) != 0) { |
|
764 |
return (-1); |
|
765 |
} |
|
766 |
} else { |
|
767 |
installer_disable_lan(); |
|
759 | 768 |
} |
760 | 769 |
|
761 | 770 |
/* Remove the settings file. */ |
Also available in: Unified diff
pfSense-Installer: Fix the issue when only the WAN settings are present.
During the configuration import, if only the WAN settings are present, remove
the LAN settings from the configuration XML.
Ticket: #17854