summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_backup.php12
1 files changed, 11 insertions, 1 deletions
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.<p>The firewall is now rebooting.";
+ $reboot_needed = true;
+ }
+ if(isset($config['captiveportal']['enable'])) {
+ $savemsg = "The configuration has been restored.<p>The firewall is now rebooting.";
+ $reboot_needed = true;
}
} else {
$input_errors[] = "The configuration could not be restored.";
@@ -279,6 +284,11 @@ include("head.inc");
<?php
+if($reboot_needed == true) {
+ mwexec("/etc/rc.reboot");
+ exit;
+}
+
if($reloadall == true) {
if(file_exists("{$g['tmp_path']}/config.cache"))
OpenPOWER on IntegriCloud