summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-06-29 11:26:31 -0400
committerjim-p <jimp@pfsense.org>2010-06-29 11:26:31 -0400
commitc3b13d6082033ecd1d3f7672ca9b1533942ec00a (patch)
treeabc03db658e46d971eff48c20e44f22e14bfa3cc /etc
parent929a1b15cc627151655e126f88489930e828c7ef (diff)
downloadpfsense-c3b13d6082033ecd1d3f7672ca9b1533942ec00a.zip
pfsense-c3b13d6082033ecd1d3f7672ca9b1533942ec00a.tar.gz
Load cpufreq on nanobsd when enabling powerd. It's in the kernel on full installs. Fixes #704
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index ac8fa37..a79a5fb 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -34,13 +34,15 @@
pfSense_BUILDER_BINARIES: /bin/hostname /bin/ls /usr/bin/netstat /usr/sbin/syslogd
pfSense_BUILDER_BINARIES: /usr/sbin/pccardd /usr/local/sbin/lighttpd /bin/chmod /bin/mkdir
pfSense_BUILDER_BINARIES: /usr/bin/tar /bin/sync /usr/local/sbin/ntpd /usr/sbin/ntpdate
- pfSense_BUILDER_BINARIES: /usr/bin/nohup /sbin/dmesg /usr/local/sbin/atareinit
+ pfSense_BUILDER_BINARIES: /usr/bin/nohup /sbin/dmesg /usr/local/sbin/atareinit /sbin/kldload
pfSense_MODULE: utils
*/
function activate_powerd() {
global $config, $g;
if(isset($config['system']['powerd_enable'])) {
+ if ($g["platform"] == "nanobsd")
+ exec("/sbin/kldload cpufreq");
exec("/usr/sbin/powerd -b adp -a adp");
} else {
if(is_process_running("powerd"))
OpenPOWER on IntegriCloud