summaryrefslogtreecommitdiffstats
path: root/usr/local/www/fbegin.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-01-24 14:34:44 -0500
committerjim-p <jimp@pfsense.org>2011-01-24 14:34:44 -0500
commit261c7de869eccca07c7d3f5ff331d28f88b2fde0 (patch)
treed0b76269dea396a71292b2915cf8241d19ac8ddf /usr/local/www/fbegin.inc
parent8633930d113a513c87f3ed63ae3623b54255ff46 (diff)
downloadpfsense-261c7de869eccca07c7d3f5ff331d28f88b2fde0.zip
pfsense-261c7de869eccca07c7d3f5ff331d28f88b2fde0.tar.gz
Warn users a different way if packages are being reinstalled in the background. Only lock out package pages, still print a giant warning on the others. (Some people were getting stuck in this state http://forum.pfsense.org/index.php/topic,32531.0.html )
Diffstat (limited to 'usr/local/www/fbegin.inc')
-rwxr-xr-xusr/local/www/fbegin.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc
index b290899..6efb7a6 100755
--- a/usr/local/www/fbegin.inc
+++ b/usr/local/www/fbegin.inc
@@ -425,5 +425,10 @@ function add_to_menu($url, $name) {
<br />
<?php
+/* if upgrade in progress, alert user */
+if(is_subsystem_dirty('packagelock')) {
+ $pgtitle = array(gettext("System"),gettext("Package Manager"));
+ print_info_box(gettext("Packages are currently being reinstalled in the background.<p>Do not make changes in the GUI until this is complete.") . "<p><img src='/themes/{$g['theme']}/images/icons/icon_fw-update.gif'>");
+}
$pgtitle_output = true;
?>
OpenPOWER on IntegriCloud