From 65f4102d48726afa4324d789551e7a74c806a590 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 21 Sep 2009 16:13:54 -0700 Subject: Replace \e with \033 for printfs \e isn't recongized in all shells. This causes issues with the locale.sh script. For completeness, \e is replaced throughout the rc.sysinit script Original-idea-by: David Khunne Signed-off-by: Aaron Griffin --- rc.sysinit | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index 9c705b9..5f5c99a 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -361,10 +361,10 @@ if echo "$LOCALE" | /bin/grep -qi utf ; then # but also when user has set vt.default_utf8=0 but LOCALE is *.UTF-8. for i in /dev/tty[0-9]*; do /usr/bin/kbd_mode -u < ${i} - printf "\e%%G" > ${i} + printf "\033%%G" > ${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 + echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\033%%G"; fi' >>/etc/profile.d/locale.sh stat_done [ -n "$KEYMAP" ] && status "Loading Keyboard Map: $KEYMAP" /bin/loadkeys -q -u $KEYMAP else @@ -372,10 +372,10 @@ else # make non-UTF-8 consoles work on 2.6.24 and newer kernels for i in /dev/tty[0-9]*; do /usr/bin/kbd_mode -a < ${i} - printf "\e%%@" > ${i} + printf "\033%%@" > ${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 + echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\033%%@"; fi' >>/etc/profile.d/locale.sh stat_done [ -n "$KEYMAP" ] && status "Loading Keyboard Map: $KEYMAP" /bin/loadkeys -q $KEYMAP fi @@ -397,10 +397,10 @@ if [ -n "$CONSOLEFONT" ]; then stat_fail else for i in /dev/tty[0-9]*; do - printf "\e(K" > ${i} + printf "\033(K" > ${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 + echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\033(K"; fi' >>/etc/profile.d/locale.sh stat_done fi fi -- cgit v1.2.3