diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-03-23 18:17:01 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-03-23 18:17:01 -0400 |
commit | 578224fe08afe2f7280df932191b38b84fdd23a5 (patch) | |
tree | 914512a30b860b3226d515a44ea60148b95c017e | |
parent | 66534ba5b44e8008278f1581694c2a45b6d7f041 (diff) | |
download | pfsense-578224fe08afe2f7280df932191b38b84fdd23a5.zip pfsense-578224fe08afe2f7280df932191b38b84fdd23a5.tar.gz |
Unbreak ACB
-rw-r--r-- | etc/inc/config.inc | 5 |
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); |