summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-10-06 08:16:46 +0000
committerErmal <eri@pfsense.org>2014-10-06 08:16:46 +0000
commit042f0d12b36835a085274336244f7e7ecb259900 (patch)
treea783a3d7d0e9cdca5262b765608f5fdd8af4183e /etc/inc
parent78aadc148c5842e2a4444cd2c5ec75c2c86e95d8 (diff)
parent3d77cc359fdd79daf9799fa90ae18379bdabe9bf (diff)
downloadpfsense-042f0d12b36835a085274336244f7e7ecb259900.zip
pfsense-042f0d12b36835a085274336244f7e7ecb259900.tar.gz
Merge pull request #1304 from sselph/powerd_normal_mode
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/system.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 9bb32ee..3dead28 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -57,7 +57,11 @@ function activate_powerd() {
if (!empty($config['system']['powerd_battery_mode']))
$battery_mode = $config['system']['powerd_battery_mode'];
- mwexec("/usr/sbin/powerd -b $battery_mode -a $ac_mode");
+ $normal_mode = "hadp";
+ if (!empty($config['system']['powerd_normal_mode']))
+ $normal_mode = $config['system']['powerd_normal_mode'];
+
+ mwexec("/usr/sbin/powerd -b $battery_mode -a $ac_mode -n $normal_mode");
}
}
OpenPOWER on IntegriCloud