aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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