From 56825c0181bbde1e1c8c0fa0c500890f2a12ce8c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 3 Dec 2005 21:44:44 +0000 Subject: Reboot when restoring a m0n0wall configuration or if captive portal is enabled. --- usr/local/www/diag_backup.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'usr/local/www/diag_backup.php') diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 5648a47..fcd5313 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -151,7 +151,7 @@ if ($_POST) { conf_mount_rw(); touch("/needs_package_sync"); $reloadall = true; - $savemsg = "The configuration has been restored. The firewall is now reloading.."; + $savemsg = "The configuration has been restored. The firewall is now reloading."; /* remove cache, we will force a config reload */ if(file_exists("/tmp/config.cache")) unlink("/tmp/config.cache"); @@ -164,6 +164,11 @@ if ($_POST) { write_config(); conf_mount_ro(); $savemsg = "The m0n0wall configuration has been restored and upgraded to pfSense.

The firewall is now rebooting."; + $reboot_needed = true; + } + if(isset($config['captiveportal']['enable'])) { + $savemsg = "The configuration has been restored.

The firewall is now rebooting."; + $reboot_needed = true; } } else { $input_errors[] = "The configuration could not be restored."; @@ -279,6 +284,11 @@ include("head.inc");