#!/bin/sh ### BEGIN INIT INFO # Provides: console-setup # Required-Start: $remote_fs # Required-Stop: # Should-Start: console-screen kbd # Default-Start: S # Default-Stop: # X-Interactive: true # Short-Description: Set console keymap ### END INIT INFO set -e # This script is used jointly by console-setup and console-setup-mini. # It belongs to keyboard-configuration because it is forbidden two # different packages to share common configuration file. test -f /usr/bin/loadkeys || exit 0 if test -f /etc/default/locale { # In order to permit auto-detection of the charmap when # console-setup-mini operates without configuration file. source /etc/default/locale export LANG } if test -f /lib/lsb/init-functions { source /lib/lsb/init-functions } else { proc log_action_begin_msg { echo -n "$ifsjoin(ARGV)... " } proc log_action_end_msg { if test $1 -eq 0 { echo done. } else { echo failed. } } } match $1 { with stop|status # console-setup isn't a daemon with start|force-reload|restart|reload if loadkeys /etc/console-setup/cached.kmap.gz { log_action_end_msg 0 } else { log_action_end_msg $Status } with * echo 'Usage: /etc/init.d/console-setup {start|reload|restart|force-reload|stop|status}' exit 1 } exit 0