From b250db6c6c2eb33ef85ee104b3661ed7dcd8acec Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 27 Jun 2009 14:28:52 -0400 Subject: [PATCH] Add NanoBSD upgrade bits. Fix the older non-used bdiff methods --- usr/local/www/system_firmware.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index fcecfae2c5..e3d3bf4522 100755 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -137,7 +137,9 @@ if ($_POST && !file_exists($d_firmwarelock_path)) { /* fire up the update script in the background */ touch($d_firmwarelock_path); $savemsg = "The firmware is now being updated. The firewall will reboot automatically."; - if(stristr($_FILES['ulfile']['tmp_name'],"bdiff")) + if(stristr($_FILES['ulfile']['name'],"nanobsd")) + mwexec_bg("/etc/rc.firmware pfSenseNanoBSDupgrade {$g['upload_path']}/firmware.tgz"); + else if(stristr($_FILES['ulfile']['name'],"bdiff")) mwexec_bg("/etc/rc.firmware delta_update {$g['upload_path']}/firmware.tgz"); else mwexec_bg("/etc/rc.firmware pfSenseupgrade {$g['upload_path']}/firmware.tgz");