]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/system/waitdrives
2 ########################################################################
3 # Begin $rc_base/init.d/waitdrives
5 # Description : Wait for drives before fscheck/mount
7 # Authors : Arne Fitzenreiter - arne_f@ipfire.org
13 ########################################################################
20 for drive
in $drives; do
21 if [ `blkid | grep $drive | wc -l` == 0 ]; then
29 drives
=`grep "^UUID=" /etc/fstab | cut -f1 | cut -d" " -f1 | cut -d"=" -f2`;
32 if [ "$drives_ready" == "0" ]; then
33 boot_mesg
-n "Wait for devices used in fstab "
34 for (( i
=1; i
<30; i
++)) do
36 if [ "$drives_ready" == "1" ]; then
46 echo "Usage: ${0} {start}"
51 # End $rc_base/init.d/waitdrives