aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorRoman Kyrylych <roman@archlinux.org>2008-03-01 00:40:02 +0200
committerRoman Kyrylych <roman@archlinux.org>2008-03-01 00:40:02 +0200
commitf94f52e5ab877ffc3160d0bf20c70be9865d45b2 (patch)
tree117934003226f76641c9c58107a74e8ab909c724 /rc.sysinit
parent1b5eeefa5a859a9c26a717603bd4c0e9fb74de82 (diff)
downloadinitscripts-f94f52e5ab877ffc3160d0bf20c70be9865d45b2.tar.xz
Set up vc/0 as well
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit8
1 files changed, 4 insertions, 4 deletions
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