summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/mdadm/raid-partitions_hook
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-10-23 18:17:40 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-10-23 18:19:39 (GMT)
commitadbcf19958300e9b6598990184c8815b945ba0ee (patch)
treef4283c850ac0ac202c17e78a637ee7ca8147621b /abs/core-testing/mdadm/raid-partitions_hook
parent61a68250df10d29b624650948484898334ff22d0 (diff)
downloadlinhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.zip
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.gz
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.bz2
Removed old core and extra from repo. Renamed -testing to core/extra. This will setup the base for the testing branch.
Diffstat (limited to 'abs/core-testing/mdadm/raid-partitions_hook')
-rw-r--r--abs/core-testing/mdadm/raid-partitions_hook21
1 files changed, 0 insertions, 21 deletions
diff --git a/abs/core-testing/mdadm/raid-partitions_hook b/abs/core-testing/mdadm/raid-partitions_hook
deleted file mode 100644
index bed1cb2..0000000
--- a/abs/core-testing/mdadm/raid-partitions_hook
+++ /dev/null
@@ -1,21 +0,0 @@
-# vim: set ft=sh:
-run_hook ()
-{
- #TODO scan for these somehow...
- /sbin/modprobe -aq linear multipath raid0 raid1 raid456 raid10>/dev/null 2>&1
- # md= can be specified multiple times. The simplistic commandline
- # parsing does not handle this, so we will let mdassemble parse it
- for i in $(replace $(echo $md) ',' ' '); do
- case $i in d[0-9])
- for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
- /sbin/mdadm --create -a mdp /dev/md_d$i >/dev/null 2>&1
- done
- mdadm --assemble --auto=mdp /dev/md_$(replace $(echo $md) ',' ' ')
- export USE_RAID_ARRAY=1
- ;;
- esac
- done
- if ! [ "$USE_RAID_ARRAY" = "1" ] ; then
- /bin/mdassemble ${CMDLINE}
- fi
-}