#! /bin/sh
#
# keytouch - a program to configure the extra function keys of the keyboard

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/keytouch-init
KEYBOARD_FILE=/etc/keytouch/current_keyboard.xml
NAME=keytouch-init
DESC=keytouch

test -x $DAEMON || exit 0
test -f $KEYBOARD_FILE || exit 0

set -e

case "$1" in
  start)
	echo -n "Starting $DESC: "
	start-stop-daemon --start --quiet --exec $DAEMON -- $DAEMON_OPTS
	echo "$NAME."
	;;
  stop)
	echo -n "Stopping $DESC: nothing to do\n"
	echo "$NAME."
	;;
  *)
	N=/etc/init.d/$NAME
	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
	echo "Usage: $N {start|stop}" >&2
	exit 1
	;;
esac

exit 0
