summaryrefslogtreecommitdiffstats
path: root/shutdown
diff options
context:
space:
mode:
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"