Last change
on this file since bbe00a4 was 7125722, checked in by Jim Gifford <clfs@…>, 17 years ago |
Import of Bootscripts
|
-
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
|
---|
20 | if [ -f /etc/sysconfig/console ]; then
|
---|
21 | . /etc/sysconfig/console
|
---|
22 | fi
|
---|
23 |
|
---|
24 | case "${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 | ;;
|
---|
48 | esac
|
---|
49 |
|
---|
50 | # End $rc_base/init.d/console
|
---|
Note:
See
TracBrowser
for help on using the repository browser.