Neue Version V963

git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_cpufreqd@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2011-01-03 10:48:06 +00:00
commit cae4bfbc9c
3 changed files with 86 additions and 0 deletions

43
etc/init.d/cpufreqd Executable file
View File

@ -0,0 +1,43 @@
#!/bin/bash
#start/stop für sendmail
#(c) Rainmaker MultiMedia OHG
#
#$Author$
#$Date$
#$Revision$
#
#$Log$
#Revision 1.1 2005/01/18 13:00:48 kueller
#Initial revision
#
#Revision 1.2 2003/04/19 07:53:05 kueller
#restart option eingebaut
#
#Revision 1.1 2001/09/24 12:14:43 kueller
#von sendmail umbenannt. Ausserdem korrekturen - korrektes Beenden von
#Sendmail nun mit killproc routine
#
#Revision 1.1.1.1 2001/09/24 11:29:11 kueller
#AddOns für sendmail
#
#
source /etc/init.d/functions
case "$1" in
start)
echo -n "Starting cpufreqd "
loadproc /usr/sbin/cpufreqd
;;
stop)
echo -n "Stopping cpufreqd"
killproc /usr/sbin/cpufreqd
;;
restart)
$0 stop
sleep 1
$1 start
;;
*)
echo "USAGE: $0 {start|stop|restart}"
esac

12
etc/init/cpufreqd.conf Normal file
View File

@ -0,0 +1,12 @@
description "Startup the cpufreq daemon for Powermanagement"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on (runlevel [12345] and (started mountfs))
stop on (runlevel [06] and (stopping udev))
console none
exec /usr/sbin/cpufreqd -D
respawn

31
init/genpkg Normal file
View File

@ -0,0 +1,31 @@
#!/bin/bash
#genpkg Script für cpufreqd
#(c) 2005, Harald Kueller
#
#$Author$
#$Date$
#$Revision$
#
#$Log$
#Revision 1.1 2005/01/18 13:00:48 kueller
#Initial revision
#
#
if [ -d /var/install/sysvinit* ]; then
WDIR=`pwd`
cd etc/init.d
chmod 755 smtp
mkdir rc{0,1,2,3,4,5,6}.d
for i in 0 1 6; do
cd rc$i.d
ln -s ../cpufreqd K84cpufreqd
cd ..
done
for i in 2 3 4 5; do
cd rc$i.d
ln -s ../cpufreqd S08cpufreqd
cd ..
done
cd $WDIR
fi