#!/bin/sh

set -e

test -f /usr/bin/cyr || exit 0

case "$1" in
    stop|status)
	# console-cyrillic isn't a daemon
	;;
    start|restart|reload)
	if [ -f /etc/console-cyrillic.conf ]; then
	    echo -n "Setting up Cyrillic on the console... "
	    cyr
	fi
	;;
    *)
	echo 'Usage: /etc/rc.d/init.d/console-cyrillic {start|reload|restart|stop|status}'
	exit 1
	;;
esac
