summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-12-18 17:39:55 +0545
committerRenato Botelho <garga@FreeBSD.org>2014-12-23 09:06:52 -0200
commit5b370150706a1e1a4b5a5ab9a73de28f8631701f (patch)
treebcd29a4e5cbd6ea52d851c9ccb329ac5bfa4b9de /usr/local
parent25d3c68fa2cf0832d656e62bc6176cd4fbbd91a9 (diff)
downloadpfsense-5b370150706a1e1a4b5a5ab9a73de28f8631701f.zip
pfsense-5b370150706a1e1a4b5a5ab9a73de28f8631701f.tar.gz
Display better message when booting and awaiting package reinstall
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/index.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 9f4d454..7041b72 100644
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -145,11 +145,10 @@ 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") {
- 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 {
+ ## If the user has logged into webGUI quickly while the system is booting then do not redirect them to
+ ## the package reinstall page. That is about to be done by the boot script anyway.
+ ## The code in fbegin.inc will put up a notice to the user.
+ if (!platform_booting()) {
header('Location: pkg_mgr_install.php?mode=reinstallall');
exit;
}
OpenPOWER on IntegriCloud