Project

General

Profile

« Previous | Next » 

Revision 2ccdd739

Added by Phil Davis over 10 years ago

Display better message when booting and awaiting package reinstall

View differences:

usr/local/www/fbegin.inc
433 433

  
434 434
<?php
435 435
/* if upgrade in progress, alert user */
436
if(is_subsystem_dirty('packagelock')) {
437
	$pgtitle = array(gettext("System"),gettext("Package Manager"));
438
	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' alt='firmware update' />");
436
if (is_subsystem_dirty('packagelock') || (file_exists('/conf/needs_package_sync') && platform_booting())) {
437
	if (file_exists('/conf/needs_package_sync') && platform_booting()) {
438
		$info_text = sprintf(gettext("%s is booting then packages will be reinstalled in the background.<p>Do not make changes in the GUI until this is complete."), $g['product_name']);
439
	} else {
440
		$pgtitle = array(gettext("System"),gettext("Package Manager"));
441
		$info_text = gettext("Packages are currently being reinstalled in the background.<p>Do not make changes in the GUI until this is complete.");
442
	}
443
	print_info_box($info_text . "<p><img src='/themes/{$g['theme']}/images/icons/icon_fw-update.gif' alt='firmware update' />");
439 444
}
440 445
	$pgtitle_output = true;
441 446
?>

Also available in: Unified diff