source: bootscripts-standard/clfs/init.d/console@ 7df280d

Last change on this file since 7df280d was 7df280d, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Change /bin/sh to /bin/bash in the bootscripts because the bootscripts use bashisms. Having ash linked to sh will cause errors. Thanks to Bigdassaved for providing the diff and Copper for bring up the issue.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#!/bin/bash
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.