summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-25 19:38:12 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-25 19:38:31 -0400
commit459a97e9ece18562660d0f5e34375766450efa8e (patch)
tree4410981f3f4567e96fac6a15ffd7de9db1e270cf /usr/local/www/system_firmware.php
parent457106da662f7c2e90fc31ce4c9c55a195bfafc4 (diff)
downloadpfsense-459a97e9ece18562660d0f5e34375766450efa8e.zip
pfsense-459a97e9ece18562660d0f5e34375766450efa8e.tar.gz
Add NanoBSD support
Diffstat (limited to 'usr/local/www/system_firmware.php')
-rwxr-xr-xusr/local/www/system_firmware.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index 73012a7..6b88851 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']['tmp_name'],"nanobsd"))
+ mwexec_bg("/etc/rc.firmware pfSenseNanoBSDupgrade {$g['upload_path']}/firmware.tgz"
+ else 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");
OpenPOWER on IntegriCloud