mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Kick off package reinstall after restoring configuration. Resolves #15
This commit is contained in:
parent
70b1def4a3
commit
09821234c9
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user