From 8aec06e03c8ed2dc9169d848ba0049043ffe35b3 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 18 Dec 2014 10:07:45 +0545 Subject: Display better message when booting and awaiting package reinstall --- usr/local/www/index.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'usr/local/www') 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(); -- cgit v1.1