summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-05-30 18:05:27 +0000
committerColin Smith <colin@pfsense.org>2005-05-30 18:05:27 +0000
commitb451b6ab060c041f5e08769f8fd7dea59c76c0cf (patch)
treeffdba40a40fd59d0165dd9b0aad3a64f343920df /usr
parentdeebaae1dddec7600dea6a66fd5019f2141dcef2 (diff)
downloadpfsense-b451b6ab060c041f5e08769f8fd7dea59c76c0cf.zip
pfsense-b451b6ab060c041f5e08769f8fd7dea59c76c0cf.tar.gz
Categorize updates by both update type and updated system.
Examples: pfSense-Full-Kernel-Update-0.67.0.tgz, pfSense-Binary-Firmware-Update-0.67.1.tgz.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_firmware_auto.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware_auto.php b/usr/local/www/system_firmware_auto.php
index 8224ed1..28b6032 100755
--- a/usr/local/www/system_firmware_auto.php
+++ b/usr/local/www/system_firmware_auto.php
@@ -128,7 +128,7 @@ foreach($categories as $index => $key) {
update_output_window($static_output);
foreach($versions[$key] as $ver) { // Begin system updates.
foreach($update_types as $type) if(in_array($type, array_keys($ver))) $url_type = $type;
- $tofetch = "pfSense-" . ucfirst($url_type) . "-Update-" . $ver['version'] . ".tgz";
+ $tofetch = "pfSense-" . ucfirst($url_type) . "-" . ucfirst($key) . "-Update-" . $ver['version'] . ".tgz";
$static_output_bak = $static_output;
$static_output .= "\n\t" . $ver['version'] . "-" . $ver['name'] . " ";
update_output_window($static_output);
@@ -142,6 +142,7 @@ foreach($categories as $index => $key) {
break;
}
} else {
+ $tofetch = "pfSense-" . ucfirst($url_type) . "-Update-" . $ver['version'] . ".tgz";
exec("/etc/rc.firmware pfSenseupgrade " . "/tmp/" . $tofetch);
unlink_if_exists("/tmp/" . $tofetch);
}
OpenPOWER on IntegriCloud