Bug 5926 - fvcool needs /etc/init.d sctipt to start at boot
Summary: fvcool needs /etc/init.d sctipt to start at boot
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: fvcool (show other bugs)
Version: unstable
Hardware: all Linux
: P2 enhancement
Assignee: viy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-22 17:33 MSK by viy
Modified: 2005-06-01 01:04 MSD (History)
1 user (show)

See Also:


Attachments
inid.d script (784 bytes, text/plain)
2005-01-22 17:38 MSK, viy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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
сделано