Load cpufreq on nanobsd when enabling powerd. It's in the kernel on full installs. Fixes #704

This commit is contained in:
jim-p 2010-06-29 11:26:31 -04:00
parent 929a1b15cc
commit c3b13d6082

View File

@ -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"))