| Summary: | fvcool needs /etc/init.d sctipt to start at boot | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Sisyphus | Reporter: | viy <viy> | ||||
| Component: | fvcool | Assignee: | Nobody's working on this, feel free to take it <nobody> | ||||
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus | ||||
| Severity: | enhancement | ||||||
| Priority: | P2 | ||||||
| Version: | unstable | ||||||
| Hardware: | all | ||||||
| OS: | Linux | ||||||
| Attachments: |
|
||||||
Created attachment 700 [details]
inid.d script
fixed in fvcool-1.04-alt2 сделано |
# 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