From f94f52e5ab877ffc3160d0bf20c70be9865d45b2 Mon Sep 17 00:00:00 2001 From: Roman Kyrylych Date: Sat, 1 Mar 2008 00:40:02 +0200 Subject: Set up vc/0 as well Signed-off-by: Roman Kyrylych --- rc.sysinit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index f331ffd..e57d904 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -375,7 +375,7 @@ if echo "$LOCALE" | /bin/grep -qi utf ; then # 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 $(seq 1 63); do + for i in $(seq 0 63); do printf "\e%%G" > /dev/vc/${i} done # the $CONSOLE check helps us avoid this when running scripts from cron @@ -386,7 +386,7 @@ 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 $(seq 1 63); do + for i in $(seq 0 63); do printf "\e%%@" > /dev/vc/${i} done # the $CONSOLE check helps us avoid this when running scripts from cron @@ -401,7 +401,7 @@ if [ -n "$CONSOLEFONT" ]; then if [ -n "$CONSOLEMAP" ] && echo "$LOCALE" | /bin/grep -qi utf ; then CONSOLEMAP="" fi - for i in $(seq 1 63); do + for i in $(seq 0 63); do if [ -n "$CONSOLEMAP" ]; then /usr/bin/setfont -m $CONSOLEMAP $CONSOLEFONT -C /dev/vc/${i} >/dev/null 2>&1 else @@ -411,7 +411,7 @@ if [ -n "$CONSOLEFONT" ]; then if [ $? -ne 0 ]; then stat_fail else - for i in $(seq 1 63); do + for i in $(seq 0 63); do printf "\e(K" > /dev/vc/${i} done # the $CONSOLE check helps us avoid this when running scripts from cron -- cgit v1.2.3