--- plamo/01_minimum/old/cpufreqd-20160619/PlamoBuild.cpufreqd-2.4.2 2016-06-19 19:02:58.000000000 +0900 +++ plamo/01_minimum/cpufreqd/PlamoBuild.cpufreqd-2.4.2 2016-07-17 12:54:50.000000000 +0900 @@ -5,7 +5,7 @@ pkgbase=cpufreqd vers=2.4.2 arch=`uname -m` -build=P4 +build=P5 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" @@ -280,6 +280,76 @@ done mv $P/etc/cpufreqd.conf $C mv $C/cpufreqd.conf $P/etc/cpufreqd.conf.new + cat <<- "EOF" > $P/etc/cpufreqd.conf.sample + [General] + pidfile=/var/run/cpufreqd.pid + poll_interval=2 + verbosity=4 + enable_remote=1 + remote_group=root + [/General] + + [sensors_plugin] + sensors_conf=/etc/sensors3.conf + [/sensors_plugin] + + [Profile] + name=On Demand High + minfreq=40% + maxfreq=100% + policy=ondemand + [/Profile] + + [Profile] + name=On Demand Low + minfreq=20% + maxfreq=80% + policy=ondemand + [/Profile] + + [Profile] + name=Performance High + minfreq=100% + maxfreq=100% + policy=performance + [/Profile] + + [Profile] + name=Performance Low + minfreq=80% + maxfreq=80% + policy=performance + [/Profile] + + [Profile] + name=Powersave High + minfreq=70% + maxfreq=70% + policy=powersave + [/Profile] + + [Profile] + name=Powersave Low + minfreq=30% + maxfreq=30% + policy=powersave + [/Profile] + + [Rule] + name=Default Rule + sensor=temp1:0-60 + cpu_interval=0-100 + profile=Performance High + [/Rule] + + [Rule] + name=CPU Too Hot + sensor=temp1:61-100 + cpu_interval=50-100 + profile=On Demand Low + [/Rule] + + EOF install -d $P/etc/rc.d/init.d cat <<- "EOF" > $P/etc/rc.d/init.d/cpufreqd #!/bin/sh @@ -366,7 +436,7 @@ tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` - tar rvpf $pkg.tar -C $P etc/cpufreqd.conf.new + tar rvpf $pkg.tar -C $P etc/cpufreqd.conf.{new,sample} tar rvpf $pkg.tar -C $P etc/rc.d/init.d/cpufreqd tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2`