diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-24 08:45:01 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-24 09:37:55 -0800 |
commit | 2b96631fa56943b728bb670e0ca016ccde8cd517 (patch) | |
tree | 0841d020c8972c6b220fd548b44ba5adc0b466e6 | |
parent | 96700ba4c5c8acc2aecddbe68e9af8adf95850a3 (diff) | |
download | vyatta-cfg-system-2b96631fa56943b728bb670e0ca016ccde8cd517.tar.gz vyatta-cfg-system-2b96631fa56943b728bb670e0ca016ccde8cd517.zip |
Add cpufrequtils default config file
If cpufrequtils is installed, then want the default to be full performance.
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | debian/control | 1 | ||||
-rw-r--r-- | debian/vyatta-cfg-system.postinst.in | 3 | ||||
-rw-r--r-- | sysconf/cpufrequtils | 5 |
4 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 5ff82c17..ee53e446 100644 --- a/Makefile.am +++ b/Makefile.am @@ -92,6 +92,7 @@ sysconf_DATA += sysconf/level sysconf_DATA += sysconf/pam_radius.cfg sysconf_DATA += sysconf/filecaps sysconf_DATA += sysconf/capability.conf +sysconf_DATA += sysconf/cpufrequtils libudevdir = /lib/udev udevrulesdir = /lib/udev/rules.d diff --git a/debian/control b/debian/control index 4f8d26c5..f6ce8dd7 100644 --- a/debian/control +++ b/debian/control @@ -51,6 +51,7 @@ Depends: acpid, radvd (>= 1:1.1-3), apt-transport-https, hostapd (>= 1:0.6.9-3), + cpufrequtils, libcap2-bin (>= 2.19) Pre-Depends: bash-completion Suggests: util-linux (>= 2.13-5), diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index bb29896c..4c5defd4 100644 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -143,6 +143,9 @@ EOF # default targets mv /etc/rsyslog.conf /etc/rsyslog.conf.orig cp $sysconfdir/rsyslog.conf /etc/rsyslog.conf + + # Install own version of cpufrequtils config + cp $sysconfdir/cpufrequtils /etc/default/cpufrequtils fi # create needed directories diff --git a/sysconf/cpufrequtils b/sysconf/cpufrequtils new file mode 100644 index 00000000..5321b9da --- /dev/null +++ b/sysconf/cpufrequtils @@ -0,0 +1,5 @@ +# Default for Vyatta systems is to not use cpu-frequency governor +ENABLE="false" +GOVERNOR="performance" +MAX_SPEED="0" +MIN_SPEED="0" |