aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2006-12-17 12:53:22 +0000
committerThomas Bächler <thomas@archlinux.org>2006-12-17 12:53:22 +0000
commit4b00503d2d25e40b0e962df08005d749cf3a4c87 (patch)
tree5e6f4577f33e8bd5070a7f1031abd9e4e73a03b2 /rc.shutdown
parent779bd2abb1b67431b6e353eaba569779fb718833 (diff)
downloadinitscripts-4b00503d2d25e40b0e962df08005d749cf3a4c87.tar.xz
added stat_append to functions, fixed fsck bugs when clock is not set
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown8
1 files changed, 7 insertions, 1 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 31c1fa3..8befcf8 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -78,11 +78,17 @@ stat_done
# Kill non-root encrypted partition mappings
if [ -f /etc/crypttab -a -n "$(grep -v ^# /etc/crypttab | grep -v ^$)" ]; then
- stat_busy "Deactivating encrypted volumes"
+ stat_busy "Deactivating encrypted volumes:"
CS=/sbin/cryptsetup.static
do_uncrypt() {
if [ $# -ge 3 ]; then
+ stat_append "${1}.."
$CS remove $1 >/dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ stat_append "failed "
+ else
+ stat_append "ok "
+ fi
fi
}
while read line; do