diff options
author | jim-p <jim@pingle.org> | 2009-12-04 15:34:30 -0500 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2009-12-04 15:34:30 -0500 |
commit | 07356178eb8f1755a6d974d37b93f3f4d86f4e92 (patch) | |
tree | 73c45daf96a70c451bd32775be961bda3ec2091f /usr/local/www/system_firmware.php | |
parent | 753157acf02922d82055893c23b2f7324bf7560c (diff) | |
download | pfsense-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-x | usr/local/www/system_firmware.php | 6 |
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> <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")) { |