summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-12-18 10:07:45 +0545
committerRenato Botelho <garga@FreeBSD.org>2014-12-23 09:06:52 -0200
commit25d3c68fa2cf0832d656e62bc6176cd4fbbd91a9 (patch)
treead7c1fcd31887890b81c3f30a6887000a54c0200 /usr/local
parentb79c23aeb67e7099671b840d05dd3c5704468ae1 (diff)
downloadpfsense-25d3c68fa2cf0832d656e62bc6176cd4fbbd91a9.zip
pfsense-25d3c68fa2cf0832d656e62bc6176cd4fbbd91a9.tar.gz
Display better message when booting and awaiting package reinstall
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/index.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 57aee4a..9f4d454 100644
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -145,8 +145,14 @@ if (!is_array($config['widgets'])) {
if(file_exists('/conf/needs_package_sync')) {
if($config['installedpackages'] <> '' && is_array($config['installedpackages']['package'])) {
if($g['platform'] == "pfSense" || $g['platform'] == "nanobsd") {
- header('Location: pkg_mgr_install.php?mode=reinstallall');
- exit;
+ if (platform_booting()) {
+ ## User has logged into webGUI quickly while system is booting.
+ ## The package reinstall will be done by the boot script real soon now.
+ ## The code in fbegin.inc will put up the reinstalling notice.
+ } else {
+ header('Location: pkg_mgr_install.php?mode=reinstallall');
+ exit;
+ }
}
} else {
conf_mount_rw();
OpenPOWER on IntegriCloud