- | = gettext('Load Balancing') ?> |
+ = gettext('Cryptographic Hardware Acceleration') ?> |
=gettext("full help"); ?>
|
-
- | =gettext("Gateway switching");?> |
-
- />
- =gettext("Allow default gateway switching"); ?>
-
- =gettext("If the link where the default gateway resides fails " .
- "switch the default gateway to another available one."); ?>
-
- |
-
-
- | =gettext("Power Savings"); ?> |
-
-
- | =gettext("Use PowerD"); ?> |
-
- />
-
- =gettext("The powerd utility monitors the system state and sets various power control " .
- "options accordingly. It offers four modes (maximum, minimum, adaptive " .
- "and hiadaptive) that can be individually selected while on AC power or batteries. " .
- "The modes maximum, minimum, adaptive and hiadaptive may be abbreviated max, " .
- "min, adp, hadp. Maximum mode chooses the highest performance values. Minimum " .
- "mode selects the lowest performance values to get the most power savings. " .
- "Adaptive mode attempts to strike a balance by degrading performance when " .
- "the system appears idle and increasing it when the system is busy. It " .
- "offers a good balance between a small performance loss for greatly " .
- "increased power savings. Hiadaptive mode is alike adaptive mode, but " .
- "tuned for systems where performance and interactivity are more important " .
- "than power consumption. It raises frequency faster, drops slower and " .
- "keeps twice lower CPU load."); ?>
-
- |
-
-
- | =gettext('On AC Power Mode') ?> |
-
-
- |
-
- | =gettext('On Battery Power Mode') ?> |
-
-
- |
-
-
- | =gettext("Cryptographic Hardware Acceleration"); ?> |
-
| =gettext("Hardware");?> |
@@ -408,6 +326,67 @@ include("head.inc");
|
+
+ | =gettext("Power Savings"); ?> |
+
+
+ | =gettext("Use PowerD"); ?> |
+
+ />
+
+ =gettext("The powerd utility monitors the system state and sets various power control " .
+ "options accordingly. It offers four modes (maximum, minimum, adaptive " .
+ "and hiadaptive) that can be individually selected while on AC power or batteries. " .
+ "The modes maximum, minimum, adaptive and hiadaptive may be abbreviated max, " .
+ "min, adp, hadp. Maximum mode chooses the highest performance values. Minimum " .
+ "mode selects the lowest performance values to get the most power savings. " .
+ "Adaptive mode attempts to strike a balance by degrading performance when " .
+ "the system appears idle and increasing it when the system is busy. It " .
+ "offers a good balance between a small performance loss for greatly " .
+ "increased power savings. Hiadaptive mode is alike adaptive mode, but " .
+ "tuned for systems where performance and interactivity are more important " .
+ "than power consumption. It raises frequency faster, drops slower and " .
+ "keeps twice lower CPU load."); ?>
+
+ |
+
+
+ | =gettext('On AC Power Mode') ?> |
+
+
+ |
+
+ | =gettext('On Battery Power Mode') ?> |
+
+
+ |
+
| =gettext("RAM Disk Settings (Reboot to Apply Changes)"); ?> |
diff --git a/src/www/system_general.php b/src/www/system_general.php
index 8daf77de9..1282cfeb0 100644
--- a/src/www/system_general.php
+++ b/src/www/system_general.php
@@ -57,6 +57,7 @@ function get_locale_list()
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig = array();
+
$pconfig['dns1gw'] = null;
$pconfig['dns2gw'] = null;
$pconfig['dns3gw'] = null;
@@ -66,10 +67,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig['timezone'] = "Etc/UTC";
$pconfig['mirror'] = 'default';
$pconfig['flavour'] = 'default';
-
$pconfig['prefer_ipv4'] = isset($config['system']['prefer_ipv4']);
+ $pconfig['gw_switch_default'] = isset($config['system']['gw_switch_default']);
$pconfig['hostname'] = $config['system']['hostname'];
$pconfig['domain'] = $config['system']['domain'];
+
if (isset($config['system']['dnsserver'])) {
list($pconfig['dns1'],$pconfig['dns2'],$pconfig['dns3'],$pconfig['dns4']) = $config['system']['dnsserver'];
} else {
@@ -196,6 +198,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
unset($config['system']['prefer_ipv4']);
}
+ if (!empty($pconfig['gw_switch_default'])) {
+ $config['system']['gw_switch_default'] = true;
+ } elseif (isset($config['system']['gw_switch_default'])) {
+ unset($config['system']['gw_switch_default']);
+ }
+
$olddnsservers = $config['system']['dnsserver'];
$config['system']['dnsserver'] = array();
foreach (array('dns1', 'dns2', 'dns3', 'dns4') as $dnsopt) {
@@ -338,107 +346,13 @@ include("head.inc");
-
- | =gettext("DNS servers"); ?> |
-
-
-
- =gettext("Enter IP addresses to be used by the system for DNS resolution. " .
- "These are also used for the DHCP service, DNS forwarder and for PPTP VPN clients."); ?>
-
-
- =gettext("In addition, optionally select the gateway for each DNS server. " .
- "When using multiple WAN connections there should be at least one unique DNS server per gateway."); ?>
-
- |
-
-
- | =gettext("DNS server options"); ?> |
-
- />
-
- =gettext("Allow DNS server list to be overridden by DHCP/PPP on WAN"); ?>
-
-
-
-
-
- />
-
- =gettext("Do not use the DNS Forwarder as a DNS server for the firewall"); ?>
-
-
- =gettext("By default localhost (127.0.0.1) will be used as the first DNS server where the DNS Forwarder or DNS Resolver is enabled and set to listen on Localhost, so system can use the local DNS service to perform lookups. ".
- "Checking this box omits localhost from the list of DNS servers."); ?>
-
- |
-
-
- | =gettext("Prefer IPv4 over IPv6"); ?> |
-
- />
- =gettext("Prefer to use IPv4 even if IPv6 is available"); ?>
-
- =gettext("By default, if a hostname resolves IPv6 and IPv4 addresses ".
- "IPv6 will be used, if you check this option, IPv4 will be " .
- "used instead of IPv6."); ?>
-
- |
-
| =gettext("Time zone"); ?> |
|
+
+ | =gettext("Firmware"); ?> |
+
| =gettext("Language");?> |
@@ -527,6 +444,114 @@ include("head.inc");
|
+
+ | =gettext("Name resolution"); ?> |
+
+
+ | =gettext("DNS servers"); ?> |
+
+
+
+ =gettext("Enter IP addresses to be used by the system for DNS resolution. " .
+ "These are also used for the DHCP service, DNS forwarder and for PPTP VPN clients."); ?>
+
+
+ =gettext("In addition, optionally select the gateway for each DNS server. " .
+ "When using multiple WAN connections there should be at least one unique DNS server per gateway."); ?>
+
+ |
+
+
+ | =gettext("DNS server options"); ?> |
+
+ />
+
+ =gettext("Allow DNS server list to be overridden by DHCP/PPP on WAN"); ?>
+
+
+
+
+
+ />
+
+ =gettext("Do not use the DNS Forwarder as a DNS server for the firewall"); ?>
+
+
+ =gettext("By default localhost (127.0.0.1) will be used as the first DNS server where the DNS Forwarder or DNS Resolver is enabled and set to listen on Localhost, so system can use the local DNS service to perform lookups. ".
+ "Checking this box omits localhost from the list of DNS servers."); ?>
+
+ |
+
+
+ | =gettext("Networking"); ?> |
+
+
+ | =gettext("Prefer IPv4 over IPv6"); ?> |
+
+ />
+ =gettext("Prefer to use IPv4 even if IPv6 is available"); ?>
+
+ =gettext("By default, if a hostname resolves IPv6 and IPv4 addresses ".
+ "IPv6 will be used, if you check this option, IPv4 will be " .
+ "used instead of IPv6."); ?>
+
+ |
+
+
+ | =gettext("Gateway switching");?> |
+
+ />
+ =gettext("Allow default gateway switching"); ?>
+
+ =gettext("If the link where the default gateway resides fails " .
+ "switch the default gateway to another available one."); ?>
+
+ |
+
|
|