Bug 5926

Summary: fvcool needs /etc/init.d sctipt to start at boot
Product: Sisyphus Reporter: viy <viy>
Component: fvcoolAssignee: viy <viy>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P2 CC: viy
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
inid.d script none

Description viy 2005-01-22 17:33:41 MSK
# fvcool needs /etc/init.d sctipt  to start at boot
# it can be in separate package fvcool-daemon
# an example of my script is added below
# +++++++++++++++++++++++++++++++++++++++++++++++++++

#!/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
Comment 1 viy 2005-01-22 17:38:18 MSK
Created attachment 700 [details]
inid.d script
Comment 2 Vitaly Lipatov 2005-01-23 02:25:49 MSK
fixed in fvcool-1.04-alt2 
Comment 3 Vitaly Lipatov 2005-06-01 01:04:17 MSD
сделано