summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware.php
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-12-04 15:34:30 -0500
committerjim-p <jim@pingle.org>2009-12-04 15:34:30 -0500
commit07356178eb8f1755a6d974d37b93f3f4d86f4e92 (patch)
tree73c45daf96a70c451bd32775be961bda3ec2091f /usr/local/www/system_firmware.php
parent753157acf02922d82055893c23b2f7324bf7560c (diff)
downloadpfsense-07356178eb8f1755a6d974d37b93f3f4d86f4e92.zip
pfsense-07356178eb8f1755a6d974d37b93f3f4d86f4e92.tar.gz
Prompt for the correct image extension when updating firmware. (.img.gz for nano and .tgz for others)
Diffstat (limited to 'usr/local/www/system_firmware.php')
-rwxr-xr-xusr/local/www/system_firmware.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index b79bab8..93fe96b 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -262,7 +262,11 @@ if(stristr($_FILES['ulfile']['name'],"nanobsd"))
<strong>Firmware image file: </strong>&nbsp;
<input name="ulfile" type="file" class="formfld">
<br><br>
- <b>NOTE: You must upload a .tgz image, not an uncompressed image!</b>
+ <?php if ($g['platform'] == "nanobsd"): ?>
+ <b>NOTE: You must upload a .img.gz image, not an uncompressed image!</b>
+ <?php else: ?>
+ <b>NOTE: You must upload a .tgz image, not an uncompressed image!</b>
+ <?php endif; ?>
<br><br>
<?php
if(!file_exists("/boot/kernel/pfsense_kernel.txt")) {
OpenPOWER on IntegriCloud