diff options
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh')
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh | 8 |
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 | |||
23 | mount_nfs=no | 23 | mount_nfs=no |
24 | mount_smb=no | 24 | mount_smb=no |
25 | mount_ncp=no | 25 | mount_ncp=no |
26 | mount_cifs=no | ||
26 | while read device mountpt fstype options | 27 | while read device mountpt fstype options |
27 | do | 28 | do |
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 | ||
59 | done | 64 | done |
60 | 65 | ||
61 | exec 0>&1 | 66 | exec 0>&1 |
@@ -70,12 +75,13 @@ then | |||
70 | fi | 75 | fi |
71 | fi | 76 | fi |
72 | 77 | ||
73 | if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes | 78 | if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes || test "$mount_cifs" = yes |
74 | then | 79 | then |
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 | ||
79 | fi | 85 | fi |
80 | 86 | ||
81 | ) < /etc/fstab | 87 | ) < /etc/fstab |