|
From: Heiko Z. <smi...@us...> - 2005-01-15 00:02:21
|
Update of /cvsroot/devil-linux/build/config/etc/init.d In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13346/config/etc/init.d Modified Files: mountfs Log Message: mountfs now creates missing mdX device nodes Index: mountfs =================================================================== RCS file: /cvsroot/devil-linux/build/config/etc/init.d/mountfs,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- mountfs 20 Mar 2004 18:20:29 -0000 1.35 +++ mountfs 15 Jan 2005 00:01:40 -0000 1.36 @@ -84,6 +84,14 @@ # start RAID if tools and config file are installed if [ -x /sbin/mdadm ] && [ -e /etc/mdadm.conf ]; then + # check if we have all the necessary devices, otherwise create them + if [ ! -e /dev/md0 ]; then + for minor in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + mknod /dev/md${minor} b 9 ${minor} + chmod 660 /dev/md${minor} + done + fi echo "Starting RAID:" modprobe -k md /sbin/mdadm --assemble --scan --verbose 2>&1 | sed \ |