source: bootscripts/lfs/init.d/console@ 055aa17

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 055aa17 was 163a6701, checked in by Jim Gifford <clfs@…>, 19 years ago

r720@server (orig r718): jim | 2005-11-18 08:06:26 -0800
Added bootscripts to cross-lfs svn

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/console
4#
5# Description : Sets keymap and screen font
6#
7# Authors : Gerard Beekmans - gerard@linuxfromscratch.org
8# Alexander E. Patrakov
9#
10# Version : 00.00
11#
12# Notes :
13#
14########################################################################
15
16. /etc/sysconfig/rc
17. ${rc_functions}
18
19# Native English speakers probably don't have /etc/sysconfig/console at all
20if [ -f /etc/sysconfig/console ]; then
21 . /etc/sysconfig/console
22fi
23
24case "${1}" in
25 start)
26 if [ -n "${KEYMAP}" ]; then
27 boot_mesg "Loading keymap: ${KEYMAP}..."
28 loadkeys ${KEYMAP} &>/dev/null
29 evaluate_retval
30 fi
31
32 if [ -n "${KEYMAP_CORRECTIONS}" ]; then
33 boot_mesg "Loading keymap corrections: ${KEYMAP_CORRECTIONS}..."
34 loadkeys ${KEYMAP_CORRECTIONS} &>/dev/null
35 evaluate_retval
36 fi
37
38 if [ -n "${FONT}" ]; then
39 boot_mesg "Setting screen font to ${FONT}..."
40 setfont $FONT &>/dev/null
41 evaluate_retval
42 fi
43 ;;
44 *)
45 echo "Usage: ${0} {start}"
46 exit 1
47 ;;
48esac
49
50# End $rc_base/init.d/console
Note: See TracBrowser for help on using the repository browser.