summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-03-23 18:17:01 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-03-23 18:17:01 -0400
commit578224fe08afe2f7280df932191b38b84fdd23a5 (patch)
tree914512a30b860b3226d515a44ea60148b95c017e
parent66534ba5b44e8008278f1581694c2a45b6d7f041 (diff)
downloadpfsense-578224fe08afe2f7280df932191b38b84fdd23a5.zip
pfsense-578224fe08afe2f7280df932191b38b84fdd23a5.tar.gz
Unbreak ACB
-rw-r--r--etc/inc/config.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index fb3c46e..54bc0f7 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1151,9 +1151,14 @@ function config_restore($conffile) {
return 1;
config_lock();
+
conf_mount_rw();
backup_config();
+
+ // backup_config() will mount ro again
+ conf_mount_rw();
+
copy($conffile, "{$g['cf_conf_path']}/config.xml");
$config = parse_config(true);
write_config("Reverted to " . array_pop(explode("/", $conffile)) . ".", false);
OpenPOWER on IntegriCloud