Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37760545
en ru br
Репозитории ALT

Группа :: Система/Настройка/Оборудование
Пакет: TurionPowerControl

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

#!/bin/sh

# chkconfig: 2345 88 06
# description: This script loads cpuid and msr kernel modules \
# required for TurionPowerControl. \
# TurionPowerControl is used to tweak AMD processors parameters \
# such as voltage, frequiency and so on.

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0
SERVICENAME="TurionPowerControl"

# TODO:
#[ -f /usr/sbin/TurionPowerControl ] || exit 0
#
#prog="TurionPowerControl"
#
## Get config.
#if [ -f /etc/sysconfig/tpc ]; then
# . /etc/sysconfig/tpc
#fi
#
#LOCKFILE=/var/lock/subsys/tpc

load_modules ()
{
modprobe cpuid ||:
modprobe msr ||:
}

# See how we were called.
case "$1" in
condrestart)
;;
start)
echo -n "Enabling $SERVICENAME: "
load_modules
RETVAL=$?
;;
stop|condstop)
echo -n "Disabling $SERVICENAME: "
RETVAL=$?
;;
status)
echo -n not implemented
RETVAL=0
;;
restart)
"$0" stop; "$0" start
;;
*)
echo "Usage: $0 {start|stop|status|restart}"
exit 1
esac

if [ $RETVAL -gt 0 ]; then
echo_failure
else
echo_success
fi
echo
exit $RETVAL
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin