#!/bin/bash
#
### BEGIN INIT INFO
# Provides: kbdConfig
# Required-Start: hmcConfig
# Required-Stop:
# Default-Start: 2 3 5
# Default-Stop:
# Description: Provide keyboard mapping configuration
### END INIT INFO

# Source function library.
. /etc/rc.status

rc_reset

case "$1" in
 start)
	if [ -f /opt/hsc/data/keycfgcheck ]
	then
	   exit 0
	fi

	echo -n "Configuring keyboard mapping"
	/opt/hsc/bin/KeyboardCheck 1>/dev/console
	rc_status -v
	;;
 stop)
	rc_status -v
 	;;
 *)
 	echo "Usage: kbdConfig {start|stop}"
	exit 1
	;;
esac
rc_exit

