aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-30 09:30:05 -0600
committerDan McGee <dan@archlinux.org>2008-02-14 19:35:31 -0600
commitfbb8d26a81dc220d7795be871e09c89fd0e03a76 (patch)
tree18ece0178305846c6af4faa44e63e872c6861d84 /rc.sysinit
parent7b6fddfb12106c9485a9ceb8fa1876a501d1f181 (diff)
downloadinitscripts-fbb8d26a81dc220d7795be871e09c89fd0e03a76.tar.xz
Remove echo -e usage from rc.sysinit
Use the always available (in sh) printf method instead. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit10
1 files changed, 5 insertions, 5 deletions
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