#!/bin/sh
#
# powertop	PowerTOP autotuner
#
# chkconfig: 345 90 10
# description:	PowerTOP autotuner

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

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

RETVAL=0

start()
{
	start_daemon --background -- powertop --auto-tune
	RETVAL=$?
	return $RETVAL
}

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

exit $RETVAL
