#!/bin/sh # chkconfig: 2345 88 06 # description: This script enables Athlon CPU cooling feature. it changes the PCI configuration data of the chipset (north bridge), and allow Athlon/Duron to go into power-save mode. Not recommended for SiS chipsets. # # Source function library. . /etc/rc.d/init.d/functions RETVAL=0 SERVICENAME="AMD Athlon/Duron cooling" TryFVcool () { if /usr/bin/fvcool $1 then RETVAL=$? success $1 else RETVAL=$? failure $1 fi return $RETVAL } # See how we were called. case "$1" in start) echo -n "Enabling $SERVICENAME: " TryFVcool -e RETVAL=$? ;; stop) echo -n "Disabling $SERVICENAME: " TryFVcool -d RETVAL=$? ;; restart) "$0" stop; "$0" start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit $RETVAL