Add /etc/grml/fai/config/scripts/GRMLBASE/36-cpufrequtils
authorMichael Prokop <devnull@localhost>
Sun, 20 Jan 2008 18:36:07 +0000 (19:36 +0100)
committerMichael Prokop <devnull@localhost>
Sun, 20 Jan 2008 18:36:07 +0000 (19:36 +0100)
debian/changelog
etc/grml/fai/config/scripts/GRMLBASE/36-cpufrequtils [new file with mode: 0755]

index 830e08a..993354b 100644 (file)
@@ -3,6 +3,8 @@ grml-live (0.2) unstable; urgency=low
   * Update isolinux.bin to version 3.55-1.
   * Add loop-aes-testsuite to GRML_FULL.
   * Set 'confirm=1' in /etc/apt/listchanges.conf.
+  * Add /etc/grml/fai/config/scripts/GRMLBASE/36-cpufrequtils
+    for providing default /etc/default/loadcpufreq configuration.
 
  -- Michael Prokop <mika@grml.org>  Mon, 14 Jan 2008 22:54:10 +0100
 
diff --git a/etc/grml/fai/config/scripts/GRMLBASE/36-cpufrequtils b/etc/grml/fai/config/scripts/GRMLBASE/36-cpufrequtils
new file mode 100755 (executable)
index 0000000..6e68b6e
--- /dev/null
@@ -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 <mika@grml.org>
+# 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