From 3c5553694dd65d9150d4a072296dbc4478f184ea Mon Sep 17 00:00:00 2001 From: Sebastian Knapp Date: Mon, 13 Mar 2006 12:05:35 +0000 Subject: [PATCH] giftnuss: new package powernowd (0.97) a cpufreq daemon which measures cpuload [2006030321335725945] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7139 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/silicit/powernowd/powernowd.desc | 45 ++++++++++++++++++++++++ package/silicit/powernowd/powernowd.init | 45 ++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 package/silicit/powernowd/powernowd.desc create mode 100644 package/silicit/powernowd/powernowd.init diff --git a/package/silicit/powernowd/powernowd.desc b/package/silicit/powernowd/powernowd.desc new file mode 100644 index 000000000..78c688687 --- /dev/null +++ b/package/silicit/powernowd/powernowd.desc @@ -0,0 +1,45 @@ +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/silicit/powernowd/powernowd.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] Daemon to control the speed and voltage of CPUs + +[T] This is a simple client to the CPUFreq driver that uses Linux kernel 2.6 +[T] sysfs interface. It works with any CPUFreq capable processor, not just +[T] processors supporting AMD's PowerNow! technology. +[T] PowerNowD measures one thing and one thing only: CPU load. It bases +[T] it's decisions solely upon that. + +[U] http://www.deater.net/john/powernowd.html + +[A] John Clemens +[M] Sebastian Knapp + +[C] extra/server +[L] GPL +[S] Beta + +[V] 0.97 + +[P] X -?---5---9 300.000 +[D] 1684011574 powernowd-0.97.tar.gz http://www.deater.net/john/ + +[O] postmake="install_init powernowd $confdir/powernowd.init" diff --git a/package/silicit/powernowd/powernowd.init b/package/silicit/powernowd/powernowd.init new file mode 100644 index 000000000..fe550ed0c --- /dev/null +++ b/package/silicit/powernowd/powernowd.init @@ -0,0 +1,45 @@ +#!/bin/bash +# +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/silicit/powernowd/powernowd.init +# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- +# +# ROCK Linux /etc/rc.d/init.d/powernowd.init +# +# Desc: CPUFreq daemon +# Runlevel: 18 rcX +# + +main_begin + + block_begin(start, `Starting powernowd.') + check(`D_prefix/sbin/powernowd') + block_end + + block_begin(stop, `Stopping powernowd.') + check(`killall -15 D_prefix/sbin/powernowd') + block_end + + block_begin(restart, `Restarting powernowd.') + check(`$0 stop ; $0 start') + block_end + +main_end