[arch-projects] [initscripts] [PATCH 11/12] rc.sysinit: Get rid of simple stat_busy blocks by using status() even with redirection now
Kurt J. Bosch
kjb-temp-2009 at alpenjodel.de
Sun Jul 3 06:22:50 EDT 2011
---
rc.sysinit | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/rc.sysinit b/rc.sysinit
index b6612ff..078daf3 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -224,14 +224,14 @@ stat_busy "Removing Leftover Files"
stat_done
if [[ $HOSTNAME ]]; then
- stat_busy "Setting Hostname: $HOSTNAME"
- echo "$HOSTNAME" >| /proc/sys/kernel/hostname && stat_done || stat_fail
+ status "Setting Hostname: $HOSTNAME" \
+ echo "$HOSTNAME" >| /proc/sys/kernel/hostname
fi
# Flush old locale settings and set user defined locale
-stat_busy "Setting Locale: ${LOCALE:=en_US}"
- echo "export LANG=$LOCALE" > /etc/profile.d/locale.sh &&
- chmod 0755 /etc/profile.d/locale.sh && stat_done || stat_fail
+status "Setting Locale: ${LOCALE:=en_US}" \
+ echo "export LANG=$LOCALE" > /etc/profile.d/locale.sh
+chmod 0755 /etc/profile.d/locale.sh
if [[ ${LOCALE,,} =~ utf ]]; then
stat_busy "Setting Consoles to UTF-8 mode"
--
1.7.1
More information about the arch-projects
mailing list