summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-06-21 16:14:29 -0400
committerjim-p <jimp@pfsense.org>2010-06-21 16:14:29 -0400
commit087d875cd9bfa318344f678a3686b38f055bf9a2 (patch)
tree8eb5ae93d5568aa88671e72f048a7320360787d3 /usr/local/www
parent414053da6935d6f8927e18befe17dfa3847c3720 (diff)
downloadpfsense-087d875cd9bfa318344f678a3686b38f055bf9a2.zip
pfsense-087d875cd9bfa318344f678a3686b38f055bf9a2.tar.gz
Correct NanoBSD update filename
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/system_firmware_auto.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/local/www/system_firmware_auto.php b/usr/local/www/system_firmware_auto.php
index e18c681..48d727c 100755
--- a/usr/local/www/system_firmware_auto.php
+++ b/usr/local/www/system_firmware_auto.php
@@ -148,9 +148,13 @@ if(!$latest_version) {
if (pfs_version_compare($current_installed_buildtime, $current_installed_version, $latest_version) == -1) {
update_status(gettext("Downloading updates") . "...");
conf_mount_rw();
-
- $status = download_file_with_progress_bar("{$updater_url}/latest{$nanosize}.tgz", "{$g['upload_path']}/latest.tgz", "read_body_firmware");
- $status = download_file_with_progress_bar("{$updater_url}/latest{$nanosize}.tgz.sha256", "{$g['upload_path']}/latest.tgz.sha256");
+ if ($g['platform'] == "nanobsd") {
+ $update_filename = "latest{$nanosize}.img.gz";
+ } else {
+ $update_filename = "latest.tgz";
+ }
+ $status = download_file_with_progress_bar("{$updater_url}/{$update_filename}", "{$g['upload_path']}/latest.tgz", "read_body_firmware");
+ $status = download_file_with_progress_bar("{$updater_url}/{$update_filename}.sha256", "{$g['upload_path']}/latest.tgz.sha256");
conf_mount_ro();
update_output_window("{$g['product_name']} " . gettext("download complete."));
} else {
OpenPOWER on IntegriCloud