summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-06 15:46:08 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-02-06 15:54:47 -0200
commit2e19a6834fb8b3f2e6f74278be9b9407d7c9d638 (patch)
tree54a84d6264849640ff71e4ca87c7a13401e63ab5 /usr/local/www/diag_backup.php
parent5e5d5abc0f7d1906d8ae793e7665fd2056d37e4d (diff)
downloadpfsense-2e19a6834fb8b3f2e6f74278be9b9407d7c9d638.zip
pfsense-2e19a6834fb8b3f2e6f74278be9b9407d7c9d638.tar.gz
Adjust backup settings to new captive portal zones
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-xusr/local/www/diag_backup.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index e869fec..2fe7b60 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -515,9 +515,14 @@ if ($_POST) {
$savemsg = gettext("The m0n0wall configuration has been restored and upgraded to pfSense.");
mark_subsystem_dirty("restore");
}
- if(isset($config['captiveportal']['enable'])) {
- /* for some reason ipfw doesn't init correctly except on bootup sequence */
- mark_subsystem_dirty("restore");
+ if(is_array($config['captiveportal'])) {
+ foreach($config['captiveportal'] as $cp) {
+ if (isset($cp['enable'])) {
+ /* for some reason ipfw doesn't init correctly except on bootup sequence */
+ mark_subsystem_dirty("restore");
+ break;
+ }
+ }
}
setup_serial_port();
if(is_interface_mismatch() == true) {
OpenPOWER on IntegriCloud