summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_advanced_misc.php
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2017-03-02 17:10:35 -0800
committerNOYB <Al_Stu@Frontier.com>2017-03-02 17:11:48 -0800
commitf51eab944e807cb6d4de0c68d4bcd5fdc9f95efa (patch)
tree261fad8d3081f71a0832c217ddc55a755fe8d414 /src/usr/local/www/system_advanced_misc.php
parentfc970ca2967ef4250925cd44a8dd0acee18078c0 (diff)
downloadpfsense-f51eab944e807cb6d4de0c68d4bcd5fdc9f95efa.zip
pfsense-f51eab944e807cb6d4de0c68d4bcd5fdc9f95efa.tar.gz
RAM Disk Settings GUI
Update notice re: log data loss. The log directory is now also backed up. Group settings to consolidate.
Diffstat (limited to 'src/usr/local/www/system_advanced_misc.php')
-rw-r--r--src/usr/local/www/system_advanced_misc.php50
1 files changed, 28 insertions, 22 deletions
diff --git a/src/usr/local/www/system_advanced_misc.php b/src/usr/local/www/system_advanced_misc.php
index 6476f11..c2f6be7 100644
--- a/src/usr/local/www/system_advanced_misc.php
+++ b/src/usr/local/www/system_advanced_misc.php
@@ -507,57 +507,63 @@ $section->addInput(new Form_Checkbox(
$pconfig['use_mfs_tmpvar']
))->setHelp('Set this to use /tmp and /var as RAM disks (memory file '.
'system disks) on a full install rather than use the hard disk. Setting this will '.
- 'cause the data in /tmp and /var to be lost, including log data. RRD '.
- 'and DHCP Leases will be retained. Changing this setting will cause the firewall to reboot after clicking "Save".');
+ 'cause the data in /tmp and /var to be lost. RRD, '.
+ 'DHCP leases and log directory will be retained. Changing this setting will cause the firewall to reboot after clicking "Save".');
-$section->addInput(new Form_Input(
+$group = new Form_Group('RAM Disk Size');
+
+$group->add(new Form_Input(
'use_mfs_tmp_size',
'/tmp RAM Disk Size',
'number',
$pconfig['use_mfs_tmp_size'],
['placeholder' => 40]
-))->setHelp('Set the size, in MiB, for the /tmp '.
- 'RAM disk. Leave blank for 40MiB. Do not set lower than 40.');
+))->setHelp('/tmp RAM Disk<br />Do not set lower than 40.');
-$section->addInput(new Form_Input(
+$group->add(new Form_Input(
'use_mfs_var_size',
'/var RAM Disk Size',
'number',
$pconfig['use_mfs_var_size'],
['placeholder' => 60]
-))->setHelp('Set the size, in MiB, for the /var '.
- 'RAM disk. Leave blank for 60MiB. Do not set lower than 60.');
+))->setHelp('/var RAM Disk<br />Do not set lower than 60.');
-$section->addInput(new Form_Input(
+$group->setHelp('Sets the size, in MiB, for the RAM disks.');
+
+$section->add($group);
+
+$group = new Form_Group('Periodic RAM Disk Data Backups');
+
+$group->add(new Form_Input(
'rrdbackup',
'Periodic RRD Backup',
'number',
$config['system']['rrdbackup'],
- ['min' => 0, 'max' => 24, 'placeholder' => 'Period between 1 and 24 hours']
-))->setHelp('This will periodically backup the RRD data so '.
- 'it can be restored automatically on the next boot. Keep in mind that the more '.
- 'frequent the backup, the more writes will happen to the media.');
+ ['min' => 0, 'max' => 24, 'placeholder' => '1 to 24 hours']
+))->setHelp('RRD Data');
-$section->addInput(new Form_Input(
+$group->add(new Form_Input(
'dhcpbackup',
'Periodic DHCP Leases Backup',
'number',
$config['system']['dhcpbackup'],
- ['min' => 0, 'max' => 24, 'placeholder' => 'Period between 1 and 24 hours']
-))->setHelp('This will periodically backup the DHCP leases so '.
- 'it can be restored automatically on the next boot. Keep in mind that the more '.
- 'frequent the backup, the more writes will happen to the media.');
+ ['min' => 0, 'max' => 24, 'placeholder' => '1 to 24 hours']
+))->setHelp('DHCP Leases');
-$section->addInput(new Form_Input(
+$group->add(new Form_Input(
'logsbackup',
'Periodic Logs Backup',
'number',
$config['system']['logsbackup'],
- ['min' => 0, 'max' => 24, 'placeholder' => 'Period between 1 and 24 hours']
-))->setHelp('This will periodically backup the log directory so '.
- 'it can be restored automatically on the next boot. Keep in mind that the more '.
+ ['min' => 0, 'max' => 24, 'placeholder' => '1 to 24 hours']
+))->setHelp('Log Directory');
+
+$group->setHelp('Sets the interval, in hours, to periodically backup these portions of RAM disk data so '.
+ 'they can be restored automatically on the next boot. Keep in mind that the more '.
'frequent the backup, the more writes will happen to the media.');
+$section->add($group);
+
$form->add($section);
$section = new Form_Section('Hardware Settings');
OpenPOWER on IntegriCloud