summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh')
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
index 859fc9eb21..82ec7f66eb 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
@@ -23,6 +23,7 @@ portmap=no
23mount_nfs=no 23mount_nfs=no
24mount_smb=no 24mount_smb=no
25mount_ncp=no 25mount_ncp=no
26mount_cifs=no
26while read device mountpt fstype options 27while read device mountpt fstype options
27do 28do
28 case "$device" in 29 case "$device" in
@@ -56,6 +57,10 @@ do
56 then 57 then
57 mount_ncp=yes 58 mount_ncp=yes
58 fi 59 fi
60 if test "$fstype" = cifs
61 then
62 mount_cifs=yes
63 fi
59done 64done
60 65
61exec 0>&1 66exec 0>&1
@@ -70,12 +75,13 @@ then
70 fi 75 fi
71fi 76fi
72 77
73if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes 78if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes || test "$mount_cifs" = yes
74then 79then
75 echo "Mounting remote filesystems..." 80 echo "Mounting remote filesystems..."
76 test "$mount_nfs" = yes && mount -a -t nfs 81 test "$mount_nfs" = yes && mount -a -t nfs
77 test "$mount_smb" = yes && mount -a -t smbfs 82 test "$mount_smb" = yes && mount -a -t smbfs
78 test "$mount_ncp" = yes && mount -a -t ncpfs 83 test "$mount_ncp" = yes && mount -a -t ncpfs
84 test "$mount_cifs" = yes && mount -a -t cifs
79fi 85fi
80 86
81) < /etc/fstab 87) < /etc/fstab