diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 81ade46..7b60207 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -769,8 +769,6 @@ function backup_config_section($section) { */ function restore_config_section($section, $new_contents) { global $config; - conf_mount_rw(); - config_lock(); $fout = fopen("{$g['tmp_path']}/tmpxml","w"); fwrite($fout, $new_contents); fclose($fout); @@ -778,8 +776,6 @@ function restore_config_section($section, $new_contents) { $config[$section] = &$section_xml; unlink($g['tmp_path'] . "/tmpxml"); write_config("Restored {$section} of config file (maybe from CARP partner)"); - conf_mount_ro(); - config_unlock(); return; } |