diff options
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2009-05-28 00:17:42 -0300 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2009-07-18 13:33:00 +1000 |
commit | da966f2da8fc670e17f753b22b1365fdd72e1499 (patch) | |
tree | 74775fdf3e05f5ad3858450039f4614d5cdd693a /rc.sysinit | |
parent | ad1e81556aa351fea39ed6eaf6efbed0ba7ce894 (diff) | |
download | initscripts-da966f2da8fc670e17f753b22b1365fdd72e1499.tar.xz |
Convert to new initscript to new virtual console scheme2009.07-1
Just convert vc/N to ttyN in all required places.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -360,8 +360,8 @@ 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. for i in $(/usr/bin/seq 0 63); do - /usr/bin/kbd_mode -u < /dev/vc/${i} - printf "\e%%G" > /dev/vc/${i} + /usr/bin/kbd_mode -u < /dev/tty${i} + printf "\e%%G" > /dev/tty${i} done # the $CONSOLE check helps us avoid this when running scripts from cron echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\e%%G"; fi' >>/etc/profile.d/locale.sh @@ -371,8 +371,8 @@ else stat_busy "Setting Consoles to legacy mode" # make non-UTF-8 consoles work on 2.6.24 and newer kernels for i in $(/usr/bin/seq 0 63); do - /usr/bin/kbd_mode -a < /dev/vc/${i} - printf "\e%%@" > /dev/vc/${i} + /usr/bin/kbd_mode -a < /dev/tty${i} + printf "\e%%@" > /dev/tty${i} done # the $CONSOLE check helps us avoid this when running scripts from cron echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\e%%@"; fi' >>/etc/profile.d/locale.sh @@ -388,16 +388,16 @@ if [ -n "$CONSOLEFONT" ]; then fi for i in $(/usr/bin/seq 0 63); do if [ -n "$CONSOLEMAP" ]; then - /usr/bin/setfont -m $CONSOLEMAP $CONSOLEFONT -C /dev/vc/${i} >/dev/null 2>&1 + /usr/bin/setfont -m $CONSOLEMAP $CONSOLEFONT -C /dev/tty${i} >/dev/null 2>&1 else - /usr/bin/setfont $CONSOLEFONT -C /dev/vc/${i} >/dev/null 2>&1 + /usr/bin/setfont $CONSOLEFONT -C /dev/tty${i} >/dev/null 2>&1 fi done if [ $? -ne 0 ]; then stat_fail else for i in $(/usr/bin/seq 0 63); do - printf "\e(K" > /dev/vc/${i} + printf "\e(K" > /dev/tty${i} done # the $CONSOLE check helps us avoid this when running scripts from cron echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\e(K"; fi' >>/etc/profile.d/locale.sh |