diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-08-05 14:34:53 -0400 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-08-05 14:34:53 -0400 |
commit | d2ae38c8b06d057c7593b7ba836bf24a1f8f6c4f (patch) | |
tree | 342c3ab2b3c3de493348093d77cc7e21e4f6b010 | |
parent | b7d66decca5117aaba3b73d2eccb97594ef1ea98 (diff) |
Set kbd_mode on all virtual consoles2008.08-1
Previous behavior only set the mode for vc0.
See FS#11093
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | rc.sysinit | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -361,8 +361,8 @@ if echo "$LOCALE" | /bin/grep -qi utf ; then # UTF-8 consoles are default since 2.6.24 kernel # this code is needed not only for older kernels, # but also when user has set vt.default_utf8=0 but LOCALE is *.UTF-8. - /usr/bin/kbd_mode -u for i in $(/usr/bin/seq 0 63); do + usr/bin/kbd_mode -u < /dev/vc/${i} printf "\e%%G" > /dev/vc/${i} done # the $CONSOLE check helps us avoid this when running scripts from cron @@ -372,8 +372,8 @@ if echo "$LOCALE" | /bin/grep -qi utf ; then else stat_busy "Setting Consoles to legacy mode" # make non-UTF-8 consoles work on 2.6.24 and newer kernels - /usr/bin/kbd_mode -a for i in $(/usr/bin/seq 0 63); do + /usr/bin/kbd_mode -a < /dev/vc/${i} printf "\e%%@" > /dev/vc/${i} done # the $CONSOLE check helps us avoid this when running scripts from cron |