summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_firmware.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index 9e876c9..ceafcec 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -111,6 +111,9 @@ if(is_subsystem_dirty('firmwarelock')) {
exit;
}
+if($_POST['backupbeforeupgrade'])
+ touch("/tmp/perform_full_backup.txt");
+
if($_POST['kerneltype']) {
if($_POST['kerneltype'] == "single")
system("touch /boot/kernel/pfsense_kernel.txt");
@@ -289,6 +292,8 @@ if(stristr($_FILES['ulfile']['name'],"nanobsd"))
<input name="Submit" type="submit" class="formbtn" value="Upgrade firmware" onClick="window.open('upload_progress.php?upload_id=<?=$upload_id?>','UploadMeter','width=370,height=115', true); return true;">
*/
?>
+ <input type="checkbox" name='backupbeforeupgrade' id='backupbeforeupgrade'> <?=gettext("Perform full backup prior to upgrade");?>
+ <br><br>
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Upgrade firmware");?>">
<?php endif; else: ?>
<strong><?=gettext("You must reboot the system before you can upgrade the firmware.");?></strong>
OpenPOWER on IntegriCloud