GIF87a;
#!/bin/sh # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh _do_md_shutdown() { local ret local final=$1 local _offroot=$(strstr "$(mdadm --help-options 2>&1)" offroot && echo --offroot) info "Waiting for mdraid devices to be clean." mdadm $_offroot -vv --wait-clean --scan| vinfo ret=$? info "Disassembling mdraid devices." mdadm $_offroot -vv --stop --scan | vinfo ret=$(($ret+$?)) if [ "x$final" != "x" ]; then info "/proc/mdstat:" vinfo < /proc/mdstat fi return $ret } if command -v mdadm >/dev/null; then _do_md_shutdown $1 else : fi
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
59-persistent-storage-md.rules | File | 843 B | 0644 |
|
65-md-incremental-imsm.rules | File | 1.44 KB | 0644 |
|
md-noddf.sh | File | 197 B | 0755 |
|
md-noimsm.sh | File | 199 B | 0755 |
|
md-shutdown.sh | File | 672 B | 0755 |
|
mdmon-pre-shutdown.sh | File | 338 B | 0755 |
|
mdmon-pre-udev.sh | File | 240 B | 0755 |
|
mdraid-cleanup.sh | File | 708 B | 0755 |
|
mdraid-needshutdown.sh | File | 265 B | 0755 |
|
mdraid-waitclean.sh | File | 910 B | 0755 |
|
mdraid_start.sh | File | 1.91 KB | 0755 |
|
module-setup.sh | File | 3.99 KB | 0755 |
|
parse-md.sh | File | 2.12 KB | 0755 |
|