diff options
Diffstat (limited to 'abs/core/dmraid/dmraid_hook')
-rw-r--r-- | abs/core/dmraid/dmraid_hook | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/abs/core/dmraid/dmraid_hook b/abs/core/dmraid/dmraid_hook new file mode 100644 index 0000000..37283e8 --- /dev/null +++ b/abs/core/dmraid/dmraid_hook @@ -0,0 +1,14 @@ +#!/usr/bin/ash + +run_hook() { + modprobe -a -q dm-mod dm-mirror >/dev/null 2>&1 + msg ":: Activating dmraid arrays..." + # prevent any event monitoring calls with -I + if [ "$quiet" = "y" ]; then + dmraid -ay -I -Z >/dev/null + else + dmraid -ay -I -Z + fi +} + +# vim: set ft=sh ts=4 sw=4 et: |