wok-current annotate dmraid/stuff/dmraid-start @ rev 18317
slitaz-boot-scripts: typo
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sat Aug 29 19:59:04 2015 +0200 (2015-08-29) |
parents | |
children |
rev | line source |
---|---|
pascal@4027 | 1 #!/bin/sh |
pascal@4027 | 2 |
pascal@4027 | 3 module=$(dmraid -s | grep ^type | awk '{ print $3 }') |
pascal@4027 | 4 |
pascal@4027 | 5 case "$module" in |
pascal@4027 | 6 mirror) module=dm-mirror;; |
pascal@4027 | 7 raid[456]*) module=raid456;; |
pascal@4027 | 8 esac |
pascal@4027 | 9 |
pascal@4027 | 10 [ -n "$module" ] && modprobe $module |
pascal@4027 | 11 dmraid -ay |