Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../lib/dracut/modules..../90mdraid
File: mdraid-cleanup.sh
#!/bin/sh
[0] Fix | Delete
[1] Fix | Delete
type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
[2] Fix | Delete
[3] Fix | Delete
containers=""
[4] Fix | Delete
for md in /dev/md[0-9_]*; do
[5] Fix | Delete
[ -b "$md" ] || continue
[6] Fix | Delete
udevinfo="$(udevadm info --query=env --name=$md)"
[7] Fix | Delete
strstr "$udevinfo" "DEVTYPE=partition" && continue
[8] Fix | Delete
if strstr "$udevinfo" "MD_LEVEL=container"; then
[9] Fix | Delete
containers="$containers $md"
[10] Fix | Delete
continue
[11] Fix | Delete
fi
[12] Fix | Delete
mdadm -S "$md" >/dev/null 2>&1
[13] Fix | Delete
done
[14] Fix | Delete
[15] Fix | Delete
for md in $containers; do
[16] Fix | Delete
mdadm -S "$md" >/dev/null 2>&1
[17] Fix | Delete
done
[18] Fix | Delete
[19] Fix | Delete
unset containers udevinfo
[20] Fix | Delete
[21] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function