diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-09-06 15:48:20 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-09-06 15:48:20 -0400 |
commit | 7475fc0ba6fececfb9b0b3cbaed5ce739897795f (patch) | |
tree | 05e9bfbf34935f15e8c3c8191f9ca2c0bbac1899 /usr | |
parent | a91333d3a73a2c9a060eecb33a55b1eb4ec89615 (diff) | |
download | pfsense-7475fc0ba6fececfb9b0b3cbaed5ce739897795f.zip pfsense-7475fc0ba6fececfb9b0b3cbaed5ce739897795f.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 468c780..d2404b9 100755 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -56,6 +56,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; |