summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorSteven Selph <steven.selph@gmail.com>2014-10-05 18:35:08 -0400
committerSteven Selph <steven.selph@gmail.com>2014-10-05 18:35:08 -0400
commit3d77cc359fdd79daf9799fa90ae18379bdabe9bf (patch)
tree269c6b1382ad3af27e7ee72684186f0b1cebd03f /etc/inc
parent4665dbdd51ea845a4b84d5068b4ecf31cd9dce4b (diff)
downloadpfsense-3d77cc359fdd79daf9799fa90ae18379bdabe9bf.zip
pfsense-3d77cc359fdd79daf9799fa90ae18379bdabe9bf.tar.gz
Add powerd normal mode flag (-n)
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