diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2012-05-31 16:32:49 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2012-05-31 16:32:49 +0000 |
commit | 2ed96c6eb798c762b61a93a8b4cf80220c00ac1f (patch) | |
tree | c5236b776b3871b4608cb683bb2500b9c20567ba /testing/mdadm/mdadm_hook | |
parent | f5a8de28b86c2c838a28e79aa54f8b4c3fbd869e (diff) |
Thu May 31 16:32:49 UTC 2012
Diffstat (limited to 'testing/mdadm/mdadm_hook')
-rwxr-xr-x | testing/mdadm/mdadm_hook | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/testing/mdadm/mdadm_hook b/testing/mdadm/mdadm_hook deleted file mode 100755 index 787be5d0c..000000000 --- a/testing/mdadm/mdadm_hook +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/ash - -run_hook() { - local i= mdconfig=/etc/mdadm.conf - - # for partitionable raid, we need to load md_mod first! - modprobe md_mod 2>/dev/null - - if [ -n "$md" ]; then - echo 'DEVICE partitions' >"$mdconfig" - for i in $(cat /proc/cmdline); do - case $i in - # raid - md=[0-9]*,/*) - device=${i%%,*} - device=${device/=/} - array=${i#*,} - echo "ARRAY /dev/$device devices=$array" - ;; - # partitionable raid - md=d[0-9]*,/*) - device=${i%%,*} - device=${device/=/_} - array=${i#*,} - echo "ARRAY /dev/$device devices=$array" - ;; - # raid UUID - md=[0-9]*,[0-9,a-fA-F]*) - device=${i%%,*} - device=${device/=/} - array=${i#*,} - echo "ARRAY /dev/$device UUID=$array" - ;; - # partitionable raid UUID - md=d[0-9]*,[0-9,a-fA-F]*) - device=${i%%,*} - device=${device/=/_} - array=${i#*,} - echo "ARRAY /dev/$device UUID=$array" - ;; - esac - done >>"$mdconfig" - fi - - # assemble everything - [ -s "$mdconfig" ] && /sbin/mdassemble -} - -# vim: set ft=sh ts=4 sw=4 et: |