Commit 97cac62f authored by Ad Schellevis's avatar Ad Schellevis

(legacy) zap merge_config_section in pfsense-utils.inc

parent ec5d6b12
......@@ -172,27 +172,6 @@ function restore_config_section($section_name, $new_contents)
return true;
}
/*
* merge_config_section($section_name, new_contents): restore a configuration section,
* and write the configuration out
* to disk/cf. But preserve the prior
* structure if needed
*/
function merge_config_section($section_name, $new_contents)
{
global $config;
$fname = '/tmp/tmp-' . time();
$fout = fopen($fname, "w");
fwrite($fout, $new_contents);
fclose($fout);
$section_xml = parse_xml_config($fname, $section_name);
$config[$section_name] = $section_xml;
unlink($fname);
write_config(sprintf(gettext("Restored %s of config file (maybe from CARP partner)"), $section_name));
disable_security_checks();
return;
}
/*
* host_firmware_version(): Return the versions used in this install
*/
......
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