#!/bin/sh

# Load keytable

# This must be executed *after* /usr is mounted.
# This means is /usr is NFS-mounted, it needs to
# run after networking and NFS mounts are up.

[ -f /etc/sysconfig/keyboard ] || exit 0

[ -f /usr/bin/loadkeys ] || exit 0

case "$1" in
	start)
		# Load the proper keymap
		echo -n "Loading keymap: "
		. /etc/sysconfig/keyboard

		if [ ${KEYTABLE:-bogus} != "bogus" ]; then
			loadkeys $KEYTABLE
		fi
		;;
	stop)
		;;
	*)
		echo "Usage: keytable {start|stop}"
		exit 1
esac

exit 0
