[main]
@type = oneshot
@version = @vers@
@description = "Active dmraid devices"
@user = ( root )
@depends = ( udevd )

[start]
@execute =
(
	if { 66-yeller -cdp devices-dmraid -1 /dev/console activate raid volumes }
	ifelse -n { 66-which -q dmraid }
		{ if { 66-yeller -cdp device-dmraid -1 /dev/console No dmraid program available, check your configuration! } exit 0 }
		if -nt {
			dmraid -vv -i -ay
			}
	66-yeller -Wcdp devices-dmraid -1 /dev/console crached - no raid volumes found!
)

[logger]
@destination = @live_dir@/log/dmraid