wok diff dmraid/stuff/dmraid-start @ rev 17224

Up tazwikiss yaff tazdev tazchroot slitaz-mercurial-style qemu-box mirror-tools (2.1.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 15 15:56:22 2014 +0200 (2014-10-15)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dmraid/stuff/dmraid-start	Wed Oct 15 15:56:22 2014 +0200
     1.3 @@ -0,0 +1,11 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +module=$(dmraid -s | grep ^type | awk '{ print $3 }')
     1.7 +
     1.8 +case "$module" in
     1.9 +mirror) module=dm-mirror;;
    1.10 +raid[456]*) module=raid456;;
    1.11 +esac
    1.12 +
    1.13 +[ -n "$module" ] && modprobe $module
    1.14 +dmraid -ay