summaryrefslogtreecommitdiff
path: root/core/mdadm/mdadm_udev_install
diff options
context:
space:
mode:
Diffstat (limited to 'core/mdadm/mdadm_udev_install')
-rw-r--r--core/mdadm/mdadm_udev_install25
1 files changed, 12 insertions, 13 deletions
diff --git a/core/mdadm/mdadm_udev_install b/core/mdadm/mdadm_udev_install
index 9fc161624..be653fc74 100644
--- a/core/mdadm/mdadm_udev_install
+++ b/core/mdadm/mdadm_udev_install
@@ -1,23 +1,22 @@
-# vim: set ft=sh:
+#!/bin/bash
+
+build() {
+ MODULES=" $(checked_modules "drivers/md/*" | grep -v "dm-")"
-build()
-{
- MODULES=" $(checked_modules "drivers/md/*" | grep -v "dm-") "
- BINARIES=""
- FILES=""
- SCRIPT=""
# check if a custom mdadm.conf exists
- if grep -q ^ARRAY /etc/mdadm.conf; then
+ if grep -qw ^ARRAY "$BASEDIR/etc/mdadm.conf"; then
echo "Custom /etc/mdadm.conf file will be used in initramfs for assembling arrays."
add_file "/etc/mdadm.conf"
fi
- add_binary "/sbin/mdadm"
- add_file "/lib/udev/rules.d/64-md-raid.rules"
+
+ add_binary "mdadm"
+ add_file "/usr/lib/udev/rules.d/64-md-raid.rules"
}
-help ()
-{
-cat<<HELPEOF
+help() {
+ cat <<HELPEOF
This hook loads raid arrays with udev.
HELPEOF
}
+
+# vim: set ft=sh ts=4 sw=4 et: