Kick off package reinstall after restoring configuration. Resolves #15

This commit is contained in:
Scott Ullrich 2009-08-23 19:00:04 -04:00
parent 70b1def4a3
commit 09821234c9

View File

@ -275,6 +275,7 @@ if ($_POST) {
touch("/needs_package_sync");
$reboot_needed = true;
$savemsg = "The configuration has been restored. The firewall is now rebooting.";
touch("/conf/needs_package_sync");
/* remove cache, we will force a config reboot */
if(file_exists("/tmp/config.cache"))
unlink("/tmp/config.cache");
@ -314,7 +315,6 @@ if ($_POST) {
if(isset($config['captiveportal']['enable'])) {
/* for some reason ipfw doesn't init correctly except on bootup sequence */
$savemsg = "The configuration has been restored.<p>The firewall is now rebooting.";
touch("/conf/needs_package_sync");
$reboot_needed = true;
}
setup_serial_port();