diff options
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/system.inc | 6 |
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"); } } |