#!/sbin/sh
#
# select	This script starts the selection daemon
#
# Version:	@(#) /sbin/init.d/select 1.01 26-Oct-1993
#
# Author:	Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#

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

  # See how we were called.
  case "$1" in
    start)
	# Using console line
	exec 0<> /dev/tty0 1>&0 2>&0

	# Starting Selection
	echo -n "Starting up Selection for Console: "

	daemon /usr/sbin/selection
	# Selection should be the first
	sleep 1
	echo
	;;
    stop)
	killproc -TERM selection
	echo
	;;
    *)
	# Oops someone made a typo.
	echo "Usage: /sbin/init.d/select {start|stop}"
	exit 1
  esac

exit 0
