#!/bin/sh
### BEGIN INIT INFO
# Provides:          console-cyrillic
# Required-Start:    $remote_fs
# Required-Stop:
# Should-Start:      console-screen kbd console-setup
# Default-Start:     S
# Default-Stop:
### END INIT INFO

set -e

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

case "$1" in
    stop)
	# console-cyrillic isn't a daemon
	;;
    start|force-reload|restart|reload)
# incompatible with console-setup's Plymouth-safe boot scheme
# (https://bugs.launchpad.net/bugs/597673)
#	if [ -f /etc/console-cyrillic ]; then
#	    if ! grep -i '^ *# *bootsetup: *no' /etc/console-cyrillic >/dev/null; then
#		echo -n "Setting up Cyrillic on the console... "
#		cyr
#		echo "done."
#	    fi
#	fi
	;;
    *)
	echo 'Usage: /etc/init.d/console-cyrillic {start|reload|restart|force-reload|stop}'
	exit 1
	;;
esac
