Project

General

Profile

« Previous | Next » 

Revision ee096757

Added by Scott Ullrich about 20 years ago

conifg -> conf

View differences:

etc/inc/pfsense-utils.inc
675 675
 */
676 676
function restore_config_section($section, $new_contents) {
677 677
    global $config;
678
    config_mount_rw();
678
    conf_mount_rw();
679 679
    $fout = fopen("{$g['tmp_path']}/tmpxml","w");
680 680
    fwrite($fout, $new_contents);
681 681
    fclose($fout);
......
683 683
    $config[$section] = &$section_xml;
684 684
    unlink($g['tmp_path'] . "/tmpxml");
685 685
    write_config("Restored {$section} of config file (maybe from CARP partner)");
686
    config_mount_ro();
686
    conf_mount_ro();
687 687
    return;
688 688
}
689 689

  

Also available in: Unified diff