File: init.d

package info (click to toggle)
console-cyrillic 0.9-17.2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 1,424 kB
  • sloc: cpp: 3,917; sh: 3,154; perl: 752; makefile: 139
file content (32 lines) | stat: -rw-r--r-- 686 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/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)
	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