wok-6.x rev 5983
busybox/init: raid1 uses ... raid1 module
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 13 22:40:04 2010 +0200 (2010-08-13) |
parents | b95abf5766d0 |
children | fe318641f452 |
files | busybox/stuff/init |
line diff
1.1 --- a/busybox/stuff/init Fri Aug 13 21:34:30 2010 +0200 1.2 +++ b/busybox/stuff/init Fri Aug 13 22:40:04 2010 +0200 1.3 @@ -34,7 +34,7 @@ 1.4 if [ -d /mnt/etc ]; then 1.5 umount /sys 1.6 [ -n "$1" ] && for i in $@ ; do 1.7 - cp -a $i /mnt$i 1.8 + cp -a $i /mnt$(dirname $i) 1.9 done 1.10 umount /proc 1.11 launch_init 1.12 @@ -64,7 +64,9 @@ 1.13 { 1.14 while read line; do 1.15 case "$line" in 1.16 - *raid1*) modprobe dm-mirror ;; 1.17 + *raid10*) modprobe raid10 ;; 1.18 + *raid0*) modprobe raid0 ;; 1.19 + *raid1*) modprobe raid1 ;; 1.20 *raid[456]*) modprobe raid456 ;; 1.21 esac 1.22 done