summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-09-25 17:01:03 -0400
committerScott Ullrich <sullrich@gmail.com>2011-09-25 17:01:03 -0400
commitb2a67b558c40c18a1519cd56cccaabd72e04f69d (patch)
tree0733f49fd9557cb202b5e441e57ad0e0c134db32 /usr/local/www/system_firmware.php
parent0c13b5f6aa638e0d5dc5d60a2bf9160ddb207263 (diff)
downloadpfsense-b2a67b558c40c18a1519cd56cccaabd72e04f69d.zip
pfsense-b2a67b558c40c18a1519cd56cccaabd72e04f69d.tar.gz
Add option to perform full backup prior to upgrade. First commit of 2011 pfSense hackathon!
Diffstat (limited to 'usr/local/www/system_firmware.php')
-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