diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-09 21:36:59 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-09 21:36:59 +0000 |
commit | 40142be90f1f0f692a5f982f54ebd7e773876a81 (patch) | |
tree | ff6ed4d91bc833e0e962e3047fa0c19bd16a6377 /etc | |
parent | 84f68d65b486c89b17927713bc62b9de89fffe23 (diff) | |
download | pfsense-40142be90f1f0f692a5f982f54ebd7e773876a81.zip pfsense-40142be90f1f0f692a5f982f54ebd7e773876a81.tar.gz |
Mount CF for RW when restoring configuration
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 3c0bebb..1a863ae 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -675,6 +675,7 @@ function backup_config_section($section) { */ function restore_config_section($section, $new_contents) { global $config; + config_mount_rw(); $fout = fopen("{$g['tmp_path']}/tmpxml","w"); fwrite($fout, $new_contents); fclose($fout); @@ -682,6 +683,7 @@ 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)"); + config_mount_ro(); return; } |