Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37045653
en ru br
ALT Linux repos
S:1.04-alt3
5.0: 1.04-alt2
4.1: 1.04-alt2
4.0: 1.04-alt2
3.0: 1.04-alt2

Group :: System/Configuration/Hardware
RPM: fvcool

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/sh

# chkconfig: 2345 88 06
# description: This script enables Athlon CPU cooling feature. see /usr/share/doc/fvcool-*/ReadMe
#

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

RETVAL=0
SERVICENAME="AMD Athlon/Duron cooling"
FVCOOL=/usr/sbin/fvcool

TryFVcool ()
{
if $FVCOOL $1
then
RETVAL=$?
success $1
else
RETVAL=$?
failure $1
fi
return $RETVAL
}


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

exit $RETVAL

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin