summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-17 00:03:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-17 00:03:27 +0000
commite1aea2cda04d9c99759946c845a5cdf1100bbaa0 (patch)
tree8129a33d7a14029dc168e41041df077796af7841 /usr/local/www/system_firmware.php
parentca7a3a5c75a388b75c046b16032fc44f0873a207 (diff)
downloadpfsense-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-xusr/local/www/system_firmware.php5
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.";
}
OpenPOWER on IntegriCloud