diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-17 00:38:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-17 00:38:11 +0000 |
commit | b6229fd07e0bbd49327573fb395336dc879a5867 (patch) | |
tree | 35570b73f861be9d3bc3a839b7e0f71d8ae689a0 /usr/local/www/system_firmware_auto.php | |
parent | 9187b46a48fd14ec254eed06775fde4983f7b912 (diff) | |
download | pfsense-b6229fd07e0bbd49327573fb395336dc879a5867.zip pfsense-b6229fd07e0bbd49327573fb395336dc879a5867.tar.gz |
* Remove exit command
* Update download filenames to reflect version number that we should be operating on
Diffstat (limited to 'usr/local/www/system_firmware_auto.php')
-rwxr-xr-x | usr/local/www/system_firmware_auto.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/system_firmware_auto.php b/usr/local/www/system_firmware_auto.php index 1d67325..4fbe8bb 100755 --- a/usr/local/www/system_firmware_auto.php +++ b/usr/local/www/system_firmware_auto.php @@ -171,28 +171,30 @@ if($use_old_checkversion == false) { update_status("No updates required."); } - exit; + $pfSense_firmware_filename="pfSense-firmware-{$firmware_version}.tgz"; + $kernel_filename="pfSense-kernel-{$kernel_version}.tgz"; + $base_filename="pfSense-base-{$base_version}.tgz"; if($needs_firmware_upgrade == true) { $i = 0; foreach($versions[0] as $tofetch) { $static_text .= "Installing firmware updates... "; update_output_window($static_text); - $status = download_file_with_progress_bar("http://www.pfSense.com/latest.tgz", "/tmp/latest.tgz"); + $status = download_file_with_progress_bar("http://www.pfSense.com/updates/{$pfSense_firmware_filename}", "/tmp/latest.tgz"); $static_status .= "done. "; } if($needs_kernel_upgrade == true) { $static_status .= "Downloading kernel update... "; update_status($static_status); - $status = download_file_with_progress_bar("http://www.pfSense.com/latest_kernel{$platform}.tgz", "/tmp/latest_kernel.tgz"); + $status = download_file_with_progress_bar("http://www.pfSense.com/updates/{$kernel_filename}", "/tmp/latest_kernel.tgz"); $static_status .= "done. "; } if($needs_base_upgrade == true) { $static_status .= "Downloading base update... "; update_status($static_status); - $status = download_file_with_progress_bar("http://www.pfSense.com/latest_base.tgz", "/tmp/latest_base.tgz"); + $status = download_file_with_progress_bar("http://www.pfSense.com/updates/{$base_filename}", "/tmp/latest_base.tgz"); $static_status .= "done. "; update_status($static_status); } |