]> git.pld-linux.org Git - packages/rc-scripts.git/blob - rc-scripts-madam.patch
- outdated
[packages/rc-scripts.git] / rc-scripts-madam.patch
1 diff -urN rc-scripts-0.3.1.org/rc.d/rc.sysinit rc-scripts-0.3.1/rc.d/rc.sysinit
2 --- rc-scripts-0.3.1.org/rc.d/rc.sysinit        2004-01-17 00:13:42.164355620 +0100
3 +++ rc-scripts-0.3.1/rc.d/rc.sysinit    2004-01-17 00:15:53.224091932 +0100
4 @@ -375,11 +375,15 @@
5                 show "Starting up RAID device %s" $RAIDDEV
6                 busy
7                 if [ -z "$RAIDSTAT" ]; then
8 -                       # Try raidstart first...if that fails then
9 +                       # Try mdadm, raidstart first...if that fails then
10                         # fall back to raid0run and if that fails too
11                         # fall back to raidadd, raidrun.
12                         RESULT=1
13 -                       if [ -x /sbin/raidstart ]; then
14 +                       if [ -x /sbin/mdadm ]; then
15 +                               /sbin/mdadm --assemble --scan
16 +                               RESULT=$?
17 +                       fi
18 +                       if [ $RESULT -gt 0 -a -x /sbin/raidstart ]; then
19                                 /sbin/raidstart $i
20                                 RESULT=$?
21                         fi
This page took 0.035565 seconds and 3 git commands to generate.