diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php
index cbbd6f60a2..10de5f3b88 100644
--- a/usr/local/www/system_advanced_misc.php
+++ b/usr/local/www/system_advanced_misc.php
@@ -88,8 +88,8 @@ $thermal_hardware_modules = array( 'coretemp' => gettext("Intel Core* CPU on-die
if ($_POST) {
- unset($input_errors);
- $pconfig = $_POST;
+ unset($input_errors);
+ $pconfig = $_POST;
ob_flush();
flush();
@@ -172,17 +172,17 @@ if ($_POST) {
}
if($_POST['maxmss_enable'] == "yes") {
- $config['system']['maxmss_enable'] = true;
+ $config['system']['maxmss_enable'] = true;
$config['system']['maxmss'] = $_POST['maxmss'];
- } else {
- unset($config['system']['maxmss_enable']);
- unset($config['system']['maxmss']);
+ } else {
+ unset($config['system']['maxmss_enable']);
+ unset($config['system']['maxmss']);
}
if($_POST['powerd_enable'] == "yes")
- $config['system']['powerd_enable'] = true;
- else
- unset($config['system']['powerd_enable']);
+ $config['system']['powerd_enable'] = true;
+ else
+ unset($config['system']['powerd_enable']);
$config['system']['powerd_ac_mode'] = $_POST['powerd_ac_mode'];
$config['system']['powerd_battery_mode'] = $_POST['powerd_battery_mode'];
@@ -198,14 +198,14 @@ if ($_POST) {
unset($config['system']['thermal_hardware']);
if($_POST['schedule_states'] == "yes")
- $config['system']['schedule_states'] = true;
- else
- unset($config['system']['schedule_states']);
+ $config['system']['schedule_states'] = true;
+ else
+ unset($config['system']['schedule_states']);
if($_POST['kill_states'] == "yes")
- $config['system']['kill_states'] = true;
- else
- unset($config['system']['kill_states']);
+ $config['system']['kill_states'] = true;
+ else
+ unset($config['system']['kill_states']);
if($_POST['use_mfs_tmpvar'] == "yes")
$config['system']['use_mfs_tmpvar'] = true;
@@ -230,10 +230,10 @@ if ($_POST) {
system_resolvconf_generate(true);
$retval = filter_configure();
if(stristr($retval, "error") <> true)
- $savemsg = get_std_save_message(gettext($retval));
+ $savemsg = get_std_save_message(gettext($retval));
else
- $savemsg = gettext($retval);
-
+ $savemsg = gettext($retval);
+
activate_powerd();
load_crypto();
load_thermal_hardware();
@@ -411,19 +411,19 @@ function tmpvar_checked(obj) {
- =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 rises frequency faster, drops slower and" .
- "keeps twice lower CPU load."); ?>
+ =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 rises frequency faster, drops slower and" .
+ "keeps twice lower CPU load."); ?>