diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-17 00:03:27 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-17 00:03:27 +0000 |
commit | e1aea2cda04d9c99759946c845a5cdf1100bbaa0 (patch) | |
tree | 8129a33d7a14029dc168e41041df077796af7841 /usr/local/www/system_firmware.php | |
parent | ca7a3a5c75a388b75c046b16032fc44f0873a207 (diff) | |
download | pfsense-e1aea2cda04d9c99759946c845a5cdf1100bbaa0.zip pfsense-e1aea2cda04d9c99759946c845a5cdf1100bbaa0.tar.gz |
When bdiff is detected in the filename, invoke the binary update
routines.
Diffstat (limited to 'usr/local/www/system_firmware.php')
-rwxr-xr-x | usr/local/www/system_firmware.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index d23ccc7..fe766e3 100755 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -119,7 +119,10 @@ 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."; - mwexec_bg("/etc/rc.firmware pfSenseupgrade {$g['upload_path']}/firmware.tgz"); + if(stristr($_FILES['ulfile']['tmp_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"); } else { $savemsg = "Firmware image missing or other error, please try again."; } |