wok-6.x diff busybox/stuff/init @ rev 6674

Up busybox (1.17.3) with make 3.82 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 12 16:37:45 2010 +0200 (2010-10-12)
parents 3f326721653c
children 0b7c86ee9c76
line diff
     1.1 --- a/busybox/stuff/init	Fri Aug 13 22:40:04 2010 +0200
     1.2 +++ b/busybox/stuff/init	Tue Oct 12 16:37:45 2010 +0200
     1.3 @@ -90,6 +90,8 @@
     1.4  	root="$(sed 's/.*softraid=\([^ ]*\).*/\1/' < /proc/cmdline)"
     1.5  	echo -n "Switching / to softraid $root..."
     1.6  	mdadm --examine --scan --config=partitions > /etc/mdadm.conf
     1.7 +	grep -qs " $root " /etc/mdadm.conf ||
     1.8 +		root=$(awk '/dev.md/ { print $2; exit }' < /etc/mdadm.conf)
     1.9  	grep level=raid /etc/mdadm.conf | load_raid
    1.10  	mdadm --assemble --scan
    1.11  	lvmsetup