diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-09-06 15:47:00 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-09-06 15:47:07 -0400 |
commit | d79be80ddba2812ddfc5e73d36b81950f1c461b2 (patch) | |
tree | 3dfd4e047bc30ca1df00a00cfa0a15d8886bdee8 /usr | |
parent | 6160967a1efb93b0928f36f74662aab53c05024d (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/system_firmware.php | 6 |
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; |