summaryrefslogtreecommitdiffstats
path: root/abs/core/dmraid/dmraid_hook
blob: 37283e83eeef84eaba0c7475a8b71bcd1b4b136c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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: