summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_advanced_misc.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-26 15:18:20 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-26 15:18:20 -0500
commit996486f42f84c6e8dde299c206ddebfeba233324 (patch)
tree408227c1657b028e53db27d9871e8f6da89b30a0 /src/usr/local/www/system_advanced_misc.php
parentb13a8425e86208691208b1e3633805bef281b49c (diff)
downloadpfsense-996486f42f84c6e8dde299c206ddebfeba233324.zip
pfsense-996486f42f84c6e8dde299c206ddebfeba233324.tar.gz
Revised power setting fix
Diffstat (limited to 'src/usr/local/www/system_advanced_misc.php')
-rw-r--r--src/usr/local/www/system_advanced_misc.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/usr/local/www/system_advanced_misc.php b/src/usr/local/www/system_advanced_misc.php
index 8ce65bd..5c937f7 100644
--- a/src/usr/local/www/system_advanced_misc.php
+++ b/src/usr/local/www/system_advanced_misc.php
@@ -229,9 +229,9 @@ if ($_POST) {
unset($config['system']['powerd_enable']);
}
- $config['system']['powerd_ac_mode'] = $_POST['ac-power'];
- $config['system']['powerd_battery_mode'] = $_POST['battery-power'];
- $config['system']['powerd_normal_mode'] = $_POST['unknown-power'];
+ $config['system']['powerd_ac_mode'] = $_POST['powerd_ac_mode'];
+ $config['system']['powerd_battery_mode'] = $_POST['powerd_battery_mode'];
+ $config['system']['powerd_normal_mode'] = $_POST['powerd_normal_mode'];
if ($_POST['crypto_hardware']) {
$config['system']['crypto_hardware'] = $_POST['crypto_hardware'];
@@ -424,21 +424,21 @@ $modes = array(
);
$section->addInput(new Form_Select(
- 'ac-power',
+ 'powerd_ac_mode',
'AC Power',
$pconfig['powerd_ac_mode'],
$modes
));
$section->addInput(new Form_Select(
- 'battery-power',
+ 'powerd_battery_mode',
'Battery Power',
$pconfig['powerd_battery_mode'],
$modes
));
$section->addInput(new Form_Select(
- 'unknown-power',
+ 'powerd_normal_mode',
'Unknown Power',
$pconfig['powerd_normal_mode'],
$modes
OpenPOWER on IntegriCloud