summaryrefslogtreecommitdiffstats
path: root/shutdown
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-11-12 03:10:49 +0100
committerDave Reisner <dreisner@archlinux.org>2012-11-12 03:11:20 +0100
commitb14dc048ed37d0e4dceccad838102af8c41b5b8d (patch)
tree4c9bc8ddabf4070d0691bbc8e6a0c761a5085305 /shutdown
parent94999eea43f7ab5269ea7f105553900457ca8181 (diff)
downloadmkinitcpio-b14dc048ed37d0e4dceccad838102af8c41b5b8d.tar.gz
mkinitcpio-b14dc048ed37d0e4dceccad838102af8c41b5b8d.tar.xz
shutdown: fix awful typo in reading metadata
Reported-by: Jan Steffens <heftig@archlinux.org> Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'shutdown')
-rw-r--r--shutdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/shutdown b/shutdown
index d43376c..e13e6fb 100644
--- a/shutdown
+++ b/shutdown
@@ -34,7 +34,7 @@ stop_device() {
# if this fails, and the array may need a full rebuild on
# the next reboot.
IFS=: read metadata _ < "/sys/class/block/$1/md/metadata_version"
- if [ "$metdata" = external ]; then
+ if [ "$metadata" = external ]; then
mdadm --wait-clean "/dev/$1"
fi
mdadm --stop "/dev/$1"