X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F36-cpufrequtils;fp=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F36-cpufrequtils;h=6e68b6eaf2c7e367a113e72970935d6114c7ede2;hb=638a56daa6778b9897a974b990a9726c99f4df97;hp=0000000000000000000000000000000000000000;hpb=1186f47692fc1ac9f3b7a8e56ff75f1633a6d34e;p=grml-live-grml.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/36-cpufrequtils b/etc/grml/fai/config/scripts/GRMLBASE/36-cpufrequtils new file mode 100755 index 0000000..6e68b6e --- /dev/null +++ b/etc/grml/fai/config/scripts/GRMLBASE/36-cpufrequtils @@ -0,0 +1,24 @@ +#!/bin/sh +# Filename: /etc/grml/fai/config/scripts/GRMLBASE/36-cpufrequtils +# Purpose: configure cpufrequtils of live-system +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2 or any later version. +# Latest change: Sun Jan 20 19:35:25 CET 2008 [mika] +################################################################################ + +set -u +set -e + +[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf +[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local + +if [ -r $target/usr/share/doc/cpufrequtils/examples/cpufrequtils.sample ] ; then + if ! [ -r $target/etc/default/loadcpufreq ] ; then + cat $target/usr/share/doc/cpufrequtils/examples/cpufrequtils.sample > $target/etc/default/loadcpufreq + sed -i 's/^ENABLE=.*/ENABLE="true"/' $target/etc/default/loadcpufreq + fi +fi + +## END OF FILE ################################################################# +# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3