[arch-general] [PATCH 26/48] Clean up whitespace errors.
Victor Lowther
victor.lowther at gmail.com
Wed Jun 30 17:47:44 EDT 2010
---
rc.shutdown | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/rc.shutdown b/rc.shutdown
index 7d5ec26..e823ed2 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -42,7 +42,7 @@ if [[ $TIMEZONE && -e /usr/share/zoneinfo/$TIMEZONE ]]; then
fi
HWCLOCK_PARAMS="--systohc"
-case $HARDWARECLOCK in
+case $HARDWARECLOCK in
UTC) HWCLOCK_PARAMS="$HWCLOCK_PARAMS --utc";;
localtime) HWCLOCK_PARAMS="$HWCLOCK_PARAMS --localtime";;
*) HWCLOCK_PARAMS="";;
@@ -73,26 +73,26 @@ if [[ -f /etc/crypttab ]]; then
# By default, initscripts used the /sbin/cryptsetup.static.
# Newer packages will only have /sbin/cryptsetup and no static binary
# This ensures maximal compatibility with the old and new layout
- for CS in /sbin/cryptsetup /usr/sbin/cryptsetup \
- /sbin/cryptsetup.static ''; do
- [[ -x $CS ]] && break
- done
- if [[ ! $CS ]]; then
- stat_append " Failed, unable to find cryptsetup."
- stat_fail
+ for CS in /sbin/cryptsetup /usr/sbin/cryptsetup \
+ /sbin/cryptsetup.static ''; do
+ [[ -x $CS ]] && break
+ done
+ if [[ ! $CS ]]; then
+ stat_append " Failed, unable to find cryptsetup."
+ stat_fail
else
- while read name src passwd opts; do
- [[ ! $name || ${name:0:1} = '#']] && continue
- [[ -b /dev/mapper/$name ]] || continue
+ while read name src passwd opts; do
+ [[ ! $name || ${name:0:1} = '#']] && continue
+ [[ -b /dev/mapper/$name ]] || continue
stat_append "${1}.."
if "$CS" remove "$name" >/dev/null 2>&1; then
stat_append "ok "
- else
+ else
stat_append "failed "
fi
done </etc/crypttab
- fi
- stat_done
+ fi
+ stat_done
fi
if [[ $USELVM =~ yes|YES && -x /sbin/lvm && -d /sys/block ]]; then
--
1.7.1
More information about the arch-general
mailing list