From b14dc048ed37d0e4dceccad838102af8c41b5b8d Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 11 Nov 2012 21:10:49 -0500 Subject: shutdown: fix awful typo in reading metadata Reported-by: Jan Steffens Signed-off-by: Dave Reisner --- shutdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3-24-g4f1b