[main]
@type = oneshot
@version = @vers@
@description = "Activate software raid devices"
@user = ( root )
@depends = ( udevadm )
@options = ( !log )

[start]
@execute =
(
   if { 66-yeller -cdp devices-mdraid -1 /dev/console starts... }
    ifelse { blkid -c /dev/null --match-token=TYPE="linux_raid_member" }
        { ifelse -n { 66-which -q mdadm }
            { if { 66-yeller -cdp device-mdraid -1 /dev/console No mdadm program available, check your configuration! } exit 0 }
        if -nt { 
            mdadm -As
        }
        66-yeller -fcdp devices-mdraid -1 /dev/console crashed! }
    
    66-yeller -cdp device-mdraid -1 /dev/console no mdraid arrays available!
)
