From 14e56d9c2fc0bd76194e3e8bc50c1a6cfbc0dabd Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 10 Oct 2005 00:02:45 +0000 Subject: Do not mount ro too early --- usr/local/www/diag_backup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index ace713a..62fafee 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -151,7 +151,7 @@ if ($_POST) { /* this will be picked up by /index.php */ conf_mount_rw(); touch("/needs_package_sync"); - conf_mount_ro(); + $reloadall = true; $savemsg = "The configuration has been restored. The firewall is now rebooting."; /* remove cache, we will force a config reload */ @@ -167,6 +167,7 @@ if ($_POST) { unset($config['shaper']); } write_config(); + conf_mount_ro(); } else { $input_errors[] = "The configuration could not be restored."; } -- cgit v1.1