diff options
author | Bill Marquette <billm@pfsense.org> | 2005-04-01 23:14:57 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-04-01 23:14:57 +0000 |
commit | 041a6f289b25cf18bdfb5f16943c39ee10e58b3a (patch) | |
tree | 6399a7572673ced742cbb4c25388ac4b3dc439f3 /etc | |
parent | 99bc7cc20421ece2846148a9c9e74d41b6b7b06f (diff) | |
download | pfsense-041a6f289b25cf18bdfb5f16943c39ee10e58b3a.zip pfsense-041a6f289b25cf18bdfb5f16943c39ee10e58b3a.tar.gz |
No need for config lock or to mount conf media r/w - write_config() does that for us
Fix the 10 second stale lock wait :)
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; } |