Disable firmware upgrade for embedded and cdrom and suggest using the console option to upgrade.

Ticket #1433
This commit is contained in:
Scott Ullrich 2007-08-27 16:31:00 +00:00
parent 5c973509cf
commit 4888535bab

View File

@ -173,6 +173,10 @@ print_info_box($sig_warning);
upload&quot; below, then choose the image file (<?=$g['platform'];?>-*.tgz)
to be uploaded.<br>Click &quot;Upgrade firmware&quot;
to start the upgrade process.</p>
<?php if ($g['platform'] == "embedded" or $g['platform'] == "cdrom"): ?>
echo "This platform cannot be upgraded. Consider using option 13 from the console.";
exit;
<?php endif; ?>
<?php if (!file_exists($d_sysrebootreqd_path)): ?>
<?php if (!file_exists($d_fwupenabled_path)): ?>
<input name="Submit" type="submit" class="formbtn" value="Enable firmware upload">