summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-24 01:15:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-24 01:15:38 +0000
commit21ee235aec5c701d075a234144c8c2c3ff212a33 (patch)
tree480168d8f4dd8b4e8aadb8def4e42cc2d2a52188
parent09cb1861cea5e3583d63c27664a083e07110db67 (diff)
downloadpfsense-21ee235aec5c701d075a234144c8c2c3ff212a33.zip
pfsense-21ee235aec5c701d075a234144c8c2c3ff212a33.tar.gz
Alert the user that the firewall must be rebooted after VLAN changes
Ticket #1555
-rwxr-xr-xusr/local/www/interfaces_vlan.php1
-rwxr-xr-xusr/local/www/interfaces_vlan_edit.php3
2 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_vlan.php b/usr/local/www/interfaces_vlan.php
index a2999f4..7932283 100755
--- a/usr/local/www/interfaces_vlan.php
+++ b/usr/local/www/interfaces_vlan.php
@@ -95,6 +95,7 @@ include("head.inc");
<?php include("fbegin.inc"); ?>
<p class="pgtitle"><?=$pgtitle?></p>
<?php if ($input_errors) print_input_errors($input_errors); ?>
+<?php if (file_exists($d_sysrebootreqd_path)) print_info_box("VLAN interfaces configured has changed. You must <a href='system_reboot.php'>reboot</a> for the changes to be applied."); ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
<?php
diff --git a/usr/local/www/interfaces_vlan_edit.php b/usr/local/www/interfaces_vlan_edit.php
index 43307aa..f4bf742 100755
--- a/usr/local/www/interfaces_vlan_edit.php
+++ b/usr/local/www/interfaces_vlan_edit.php
@@ -85,7 +85,10 @@ if ($_POST) {
$a_vlans[] = $vlan;
write_config();
+
+ touch($d_sysrebootreqd_path);
+ /* these appear to not work */
interfaces_vlan_configure();
interfaces_lan_configure();
interfaces_wan_configure();
OpenPOWER on IntegriCloud