diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-07-05 18:56:31 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-07-05 18:56:31 -0400 |
commit | bfed48a4d50891cec6f93c6944267ab93ca6f530 (patch) | |
tree | 9810fb5279d5a9358c666d734175cbb72614a59e /usr/local/www/system_firmware.php | |
parent | e213b6fc50d8bdcc34eaed732a2d64dbda376e61 (diff) | |
download | pfsense-bfed48a4d50891cec6f93c6944267ab93ca6f530.zip pfsense-bfed48a4d50891cec6f93c6944267ab93ca6f530.tar.gz |
Add a flag to keep track of nanobsd firmware upload
Diffstat (limited to 'usr/local/www/system_firmware.php')
-rwxr-xr-x | usr/local/www/system_firmware.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index 4e87266..948c97d 100755 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -156,7 +156,7 @@ if ($_POST && !is_subsystem_dirty('firmwarelock')) { /* fire up the update script in the background */ mark_subsystem_dirty('firmwarelock'); $savemsg = "The firmware is now being updated. The firewall will reboot automatically."; - if(stristr($_FILES['ulfile']['name'],"nanobsd")) + if(stristr($_FILES['ulfile']['name'],"nanobsd") or $_POST['isnano'] == "yes") 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"); @@ -193,6 +193,8 @@ include("head.inc"); "that the image has not been tampered with.<br><br>". "Do you want to install this image anyway (on your own risk)?"; print_info_box($sig_warning); +if(stristr($_FILES['ulfile']['name'],"nanobsd")) + echo "<input type='hidden' name='isnano' id='isnano' value='yes'>\n"; ?> <input name="sig_override" type="submit" class="formbtn" id="sig_override" value=" Yes "> <input name="sig_no" type="submit" class="formbtn" id="sig_no" value=" No "> |