diff options
author | Tom Gundersen <teg@jklm.no> | 2011-10-19 10:20:41 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-10-29 17:28:44 +0200 |
commit | 559175f82d6320af8855c34b7e4b9b3cb4a3ad9a (patch) | |
tree | dc48396e86abec625e4034304c9da6f3a2cf81bc /rc.sysinit | |
parent | 750db158fca0681273b65b354716469168e341c1 (diff) |
config: add /etc/vconsole.conf support
Read KEYMAP, CONSOLEFONT and CONSOLEMAP from vconsole.conf. If they are
set they take precedence over the values in rc.conf.
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -237,6 +237,10 @@ if [[ $HOSTNAME ]]; then echo "$HOSTNAME" >| /proc/sys/kernel/hostname && stat_done || stat_fail fi +if [[ -s /etc/locale.conf ]]; then + . /etc/locale.conf + [[ $LANG ]] && LOCALE=$LANG +fi if [[ ${LOCALE,,} =~ utf ]]; then stat_busy "Setting Consoles to UTF-8 mode" # UTF-8 consoles are default since 2.6.24 kernel @@ -258,6 +262,12 @@ else echo 0 >| /sys/module/vt/parameters/default_utf8 stat_done fi + +if [[ -s /etc/vconsole.conf ]]; then + . /etc/vconsole.conf + [[ $FONT ]] && CONSOLEFONT=$FONT + [[ $FONT_MAP ]] && CONSOLEMAP=$FONT_MAP +fi [[ $KEYMAP ]] && status "Loading Keyboard Map: $KEYMAP" loadkeys -q $KEYMAP |