#!/bin/sh
#
# vconsd - enables|disables|check AES autostart status
# /etc/init.d/startgui
#

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

# Just to look nicer
echo


# See how we were called.
case "$1" in
  enable)
	if [ -f /etc/vconsd/vconsd ]; then
		#echo
		cp /etc/vconsd/vconsd /etc/rc.d/rc.vcon
		echo " vconsd: enabled."
		#echo
        fi
	;;
  disable) 	  	
	if [ -f /etc/rc.d/rc.vcon ]; then
		#echo
		rm /etc/rc.d/rc.vcon
		echo " vconsd: disabled." 
		#echo		
	else
		echo " vconsd: disabled."
	fi
	;;
  status)
  	echo -n " vconsd status: "
	if [ -f /etc/rc.d/rc.vcon ]; then
		#echo
		echo $aes "enabled." 
		#echo
	else
		#echo
		echo "disabled."
		#echo
	fi
	;;
  *)
	echo "Usage: vconsd {enable|disable|status}"
	echo
	exit 1
esac

# again, just to look nicer
echo

exit 0
