aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-08-05 14:34:53 -0400
committerAaron Griffin <aaronmgriffin@gmail.com>2008-08-05 14:34:53 -0400
commitd2ae38c8b06d057c7593b7ba836bf24a1f8f6c4f (patch)
tree342c3ab2b3c3de493348093d77cc7e21e4f6b010
parentb7d66decca5117aaba3b73d2eccb97594ef1ea98 (diff)
downloadinitscripts-d2ae38c8b06d057c7593b7ba836bf24a1f8f6c4f.tar.xz
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-xrc.sysinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.sysinit b/rc.sysinit
index c838a15..6ac22c4 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -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