#!/bin/sh
########################################################################
# Begin $rc_base/init.d/sane
#
# Description : Sane Network deamon
#
# Authors     : Arne Fitzenreiter (arne_f@ipfire.org)
#
# Version     : 01.00
#
########################################################################

. /etc/sysconfig/rc
. ${rc_functions}

case "${1}" in
	start)
		boot_mesg "Starting saned - network scanner deamon..."
		loadproc /usr/sbin/saned -lD
		evaluate_retval
		;;

	stop)
		boot_mesg "Stopping saned - network scanner deamon..."
		killproc /usr/sbin/saned
		;;

	restart)
		${0} stop
		sleep 1
		${0} start
		;;

	status)
		statusproc /usr/sbin/saned
		;;

	*)
		echo "Usage: ${0} {start|stop|restart|status}"
		exit 1
		;;
esac

# End $rc_base/init.d/sane
