summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-09-06 15:47:00 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-09-06 15:47:07 -0400
commitd79be80ddba2812ddfc5e73d36b81950f1c461b2 (patch)
tree3dfd4e047bc30ca1df00a00cfa0a15d8886bdee8 /usr/local/www
parent6160967a1efb93b0928f36f74662aab53c05024d (diff)
downloadpfsense-d79be80ddba2812ddfc5e73d36b81950f1c461b2.zip
pfsense-d79be80ddba2812ddfc5e73d36b81950f1c461b2.tar.gz
Check for nanobsd in the filename for nanobsd upgrades since it is not a tar gzipped file similar to the full upgrades.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/system_firmware.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index 2e68875..e644e12 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -55,6 +55,12 @@ function file_is_for_platform($filename) {
if(!file_exists("/tmp/etc/platform"))
return false;
$upgrade_is_for_platform = trim(file_get_contents("/tmp/etc/platform"));
+ if($upgrade_is_for_platform == "nanobsd") {
+ if(strstr($filename, "nanobsd"))
+ return true;
+ else
+ return false;
+ }
if($g['platform'] == $upgrade_is_for_platform) {
unlink("/tmp/etc/platform");
return true;
OpenPOWER on IntegriCloud