#!/bin/bash
# 
# Source Mage init.d install information
# SMGL-script-version=20030606
# SMGL-START:S:S25
# SMGL-STOP:0 6:K65
#
# Startup script for the cpufreqd daemon. It's been made using the
# skeleton	example file to build /etc/init.d/ scripts.
#		This file should be used to construct scripts for /etc/init.d.
#
#		Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#		Modified for Debian GNU/Linux
#		by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version:	@(#)skeleton  1.9.1  08-Apr-2002  miquels@cistron.nl
#

PROGRAM=/usr/sbin/cpufreqd
DESC="CPU Frequency daemon"
RUNLEVEL=3

. /etc/init.d/smgl_init

required_executable $PROGRAM

start()
{
  echo "Starting $DESC: $NAME"
  loadproc $PROGRAM
  evaluate_retval
}

stop()
{
  echo "Stopping $DESC: $NAME "
  killproc $PROGRAM
  evaluate_retval
}

status()
{
  statusproc $PROGRAM
}

restart()
{
  #
  # If the "reload" option is implemented, move the "force-reload"
  # option to the "reload" entry above. If not, "force-reload" is
  # just the same as "restart".
  #
  echo "Restarting $DESC: $NAME"
  stop
  sleep 1
  start
}

