From fbb8d26a81dc220d7795be871e09c89fd0e03a76 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 30 Nov 2007 09:30:05 -0600 Subject: Remove echo -e usage from rc.sysinit Use the always available (in sh) printf method instead. Signed-off-by: Dan McGee --- rc.sysinit | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index 6dc07ae..d825b35 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -194,7 +194,7 @@ if [ -f /etc/crypttab -a -n "$(grep -v ^# /etc/crypttab | grep -v ^$)" ]; then fi fi elif [ "${cpass}" = "ASK" ]; then - echo -e "\nOpening '${cname}' volume:" + printf "\nOpening '${cname}' volume:\n" if $CS isLuks $csrc 2>/dev/null; then $CS $copts luksOpen $csrc $cname < /dev/console @@ -369,10 +369,10 @@ if echo "$LOCALE" | /bin/grep -qi utf ; then stat_busy "Setting Consoles to UTF-8" /usr/bin/kbd_mode -u for i in $(seq 1 63); do - echo -ne "\e%G" > /dev/vc/${i} + printf "\e%G" > /dev/vc/${i} done # the $CONSOLE check helps us avoid this when running scripts from cron - echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then echo -ne "\e%G"; fi' >>/etc/profile.d/locale.sh + echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\e%G"; fi' >>/etc/profile.d/locale.sh stat_done status "Loading Keyboard Map: $KEYMAP in utf-8 mode" /bin/loadkeys -q -u $KEYMAP else @@ -396,10 +396,10 @@ if [ -n "$CONSOLEFONT" ]; then stat_fail else for i in $(seq 1 63); do - echo -ne "\e(K" > /dev/vc/${i} + printf "\e(K" > /dev/vc/${i} done # the $CONSOLE check helps us avoid this when running scripts from cron - echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then echo -ne "\e(K"; fi' >>/etc/profile.d/locale.sh + echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\e(K"; fi' >>/etc/profile.d/locale.sh stat_done fi fi -- cgit v1.2.3