void-packages/srcpkgs/dmraid/files/dmraid.initramfs-local-top
2012-05-11 04:45:15 +02:00

25 lines
317 B
Bash

#!/bin/sh
# local-top script for dmraid.
PREREQS=""
prereqs()
{
echo $PREREQS
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
# Activate any dmraid arrays that were not identified by udev and vol_id.
if devices=$(dmraid -r -c); then
for dev in $devices; do
dmraid-activate $dev
done
fi