Edit File by line
•
/
home
/
barbar84
/
public_h...
/
wp-conte...
/
plugins
/
sujqvwi
/
AnonR
/
anonr.TX...
/
lib
/
dracut
/
modules....
/
90mdraid
•
File:
md-shutdown.sh
#!/bin/sh
[
0
]
Fix
|
Delete
[
1
]
Fix
|
Delete
_do_md_shutdown() {
[
2
]
Fix
|
Delete
local ret
[
3
]
Fix
|
Delete
local final=$1
[
4
]
Fix
|
Delete
info "Waiting for mdraid devices to be clean."
[
5
]
Fix
|
Delete
mdadm -vv --wait-clean --scan| vinfo
[
6
]
Fix
|
Delete
ret=$?
[
7
]
Fix
|
Delete
info "Disassembling mdraid devices."
[
8
]
Fix
|
Delete
mdadm -vv --stop --scan | vinfo
[
9
]
Fix
|
Delete
ret=$(($ret+$?))
[
10
]
Fix
|
Delete
if [ "x$final" != "x" ]; then
[
11
]
Fix
|
Delete
info "/proc/mdstat:"
[
12
]
Fix
|
Delete
vinfo < /proc/mdstat
[
13
]
Fix
|
Delete
fi
[
14
]
Fix
|
Delete
return $ret
[
15
]
Fix
|
Delete
}
[
16
]
Fix
|
Delete
[
17
]
Fix
|
Delete
if command -v mdadm >/dev/null; then
[
18
]
Fix
|
Delete
_do_md_shutdown $1
[
19
]
Fix
|
Delete
else
[
20
]
Fix
|
Delete
:
[
21
]
Fix
|
Delete
fi
[
22
]
Fix
|
Delete
[
23
]
Fix
|
Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function
Edit text
Download
Information
Rename
Copy
Move
Delete
Chmod
List