diff options
author | Roman Kyrylych <roman@archlinux.org> | 2007-10-21 15:24:57 +0300 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2007-10-21 15:10:06 +0200 |
commit | 59f89b4a25fbc100551a814f5bcf81aa05b6c2e7 (patch) | |
tree | c5f5ffb0ac47873d326def8476f7a8f9c23cf194 /rc.sysinit | |
parent | 956e12f7f57a38ed382032d361ac22196d015170 (diff) | |
download | initscripts-59f89b4a25fbc100551a814f5bcf81aa05b6c2e7.tar.xz |
Fix locale handling
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -348,19 +348,17 @@ stat_done if echo "$LOCALE" | /bin/grep -qi utf ; then stat_busy "Setting Consoles to UTF-8" /usr/bin/kbd_mode -u - for i in $(seq 1 63); do - echo -ne "\e%G" >/dev/vc/${i} - done + # the $CONSOLE check helps us avoid this when running scripts from cron + echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then echo -ne "\e%G"; fi' >>/etc/profile.d/locale.sh stat_done stat_busy "Loading Keyboard Map: $KEYMAP in utf-8 mode" /bin/loadkeys -q -u "$KEYMAP" > /dev/null 2>&1 + stat_done else stat_busy "Loading Keyboard Map: $KEYMAP in legacy mode" /bin/loadkeys -q "$KEYMAP" > /dev/null 2>&1 -fi - # the $CONSOLE check helps us avoid this when running scripts from cron - echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then echo -ne "\e%G"; fi' >>/etc/profile.d/locale.sh stat_done +fi if [ -n "$CONSOLEFONT" ]; then stat_busy "Loading Console Font: $CONSOLEFONT" @@ -368,7 +366,7 @@ if [ -n "$CONSOLEFONT" ]; then if [ -n "$CONSOLEMAP" ] && echo "$LOCALE" | /bin/grep -qi utf ; then CONSOLEMAP="" fi - for i in $(seq 1 12); do + for i in $(seq 1 63); do if [ -n "$CONSOLEMAP" ]; then /usr/bin/setfont -m $CONSOLEMAP $CONSOLEFONT -C /dev/vc/${i} else |