3
# Provides: keyboard-setup.sh
4
# Required-Start: mountkernfs
6
# X-Start-Before: checkroot
10
# Short-Description: Set the console keyboard layout
11
# Description: Set the console keyboard as early as possible
12
# so during the file systems checks the administrator
13
# can interact. At this stage of the boot process
14
# only the ASCII symbols are supported.
17
if [ -f /bin/setupcon ]; then
20
# console-setup isn't a daemon
22
start|force-reload|restart|reload)
23
if [ -f /lib/lsb/init-functions ]; then
24
. /lib/lsb/init-functions
26
log_action_begin_msg () {
30
log_action_end_msg () {
31
if [ "$1" -eq 0 ]; then
38
log_action_begin_msg "Setting up keyboard layout"
39
if /lib/console-setup/keyboard-setup.sh; then
46
echo 'Usage: /etc/init.d/keyboard-setup {start|reload|restart|force-reload|stop|status}'