#!/bin/sh
# cpufreq -- loads cpufreq modules
#
# chkconfig: 2345 34 10
# description: loads cpufreq modules for fucher use by powersaved
# config: /etc/sysconfig/powersave
#		
# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

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

RETVAL=0
CPUFREQ_DETECT=/usr/sbin/cpufreq-detect.sh

start()
{
    $CPUFREQ_DETECT
    RETVAL=$?
}
stop()
{
	true
}

restart()
{
    stop
    start
}

reload()
{
    stop
    start
}

# See how we were called.
case "$1" in
    start|stop|reload|restart|abort)
    "$1"
    ;;
    condstop)
	stop
    ;;
    condrestart)
	restart
    ;;
    condreload)
	reload
    ;;
    *)
    msg_usage "${0##*/} {start|stop|adjust|reload|restart|condstop|condrestart|condreload}"
    RETVAL=1
esac

exit $RETVAL
