diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-07 03:29:04 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-07 03:29:04 +0000 |
commit | cdb0117c70cf7caeef1f3a82111384c484d6118d (patch) | |
tree | 35c5a47825f01d71939a2689f31e8199c6c71948 /usr/local/www/system_firmware_auto.php | |
parent | 1c0e3b998d16c620ce33f61be35da5b9245ba3da (diff) | |
download | pfsense-cdb0117c70cf7caeef1f3a82111384c484d6118d.zip pfsense-cdb0117c70cf7caeef1f3a82111384c484d6118d.tar.gz |
Get script ready for colins xmlrpc transformation:
Diffstat (limited to 'usr/local/www/system_firmware_auto.php')
-rwxr-xr-x | usr/local/www/system_firmware_auto.php | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/usr/local/www/system_firmware_auto.php b/usr/local/www/system_firmware_auto.php index 98ffa3b..e224290 100755 --- a/usr/local/www/system_firmware_auto.php +++ b/usr/local/www/system_firmware_auto.php @@ -78,19 +78,24 @@ require("guiconfig.inc"); /* auto upgrade logic starts here */ +// XXX: logic to deterimine if we need a new version. +$needs_system_upgrade = true; +$needs_base_upgrade = false; +$platform = return_filename_as_string("/etc/platform"); + +/* colin, these will become xmlrpc */ update_status("Downloading current version information..."); -$status = download_file_with_progress_bar("http://www.pfSense.com/pfSense/version", "/tmp/pfSense_version"); +$system_version_avail = download_file_with_progress_bar("http://www.pfSense.com/pfSense/version", "/tmp/pfSense_version"); update_status("Downloading current base version information..."); -$status = download_file_with_progress_bar("http://www.pfSense.com/pfSense/version_base", "/tmp/pfSense_base_version"); +$base_version_avail = download_file_with_progress_bar("http://www.pfSense.com/pfSense/version_base", "/tmp/pfSense_base_version"); + +update_status("Downloading current kernel version information..."); +$kernel_version_avail = download_file_with_progress_bar("http://www.pfSense.com/pfSense/version_kernel_{$platform}", "/tmp/pfSense_kernel_version"); $current_installed_pfsense_version = return_filename_as_string("/etc/version"); $current_installed_pfsense_base_version = return_filename_as_string("/etc/version_base"); - -// XXX: logic to deterimine if we need a new version. -$needs_system_upgrade = true; -$needs_base_upgrade = false; -$platform = return_filename_as_string("/etc/platform"); +/* end of colin these will be xmlrpc */ if($needs_system_upgrade == true) { update_status("Downloading updates ..."); |