diff options
Diffstat (limited to 'meta/recipes-core/initscripts')
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh | 8 | ||||
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh | 2 | ||||
-rw-r--r-- | meta/recipes-core/initscripts/initscripts_1.0.bb | 2 |
3 files changed, 9 insertions, 3 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 |
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh index 15d1f73131..af075407fd 100755 --- a/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh +++ b/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh | |||
@@ -23,7 +23,7 @@ test -f /etc/fstab && ( | |||
23 | # | 23 | # |
24 | while read device mountpt fstype options | 24 | while read device mountpt fstype options |
25 | do | 25 | do |
26 | if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs | 26 | if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs || test "$fstype" = cifs |
27 | then | 27 | then |
28 | umount -f $mountpt | 28 | umount -f $mountpt |
29 | fi | 29 | fi |
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb index b56c55c8a5..e16f19f1ad 100644 --- a/meta/recipes-core/initscripts/initscripts_1.0.bb +++ b/meta/recipes-core/initscripts/initscripts_1.0.bb | |||
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip | |||
3 | SECTION = "base" | 3 | SECTION = "base" |
4 | LICENSE = "GPLv2" | 4 | LICENSE = "GPLv2" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
6 | PR = "r130" | 6 | PR = "r131" |
7 | 7 | ||
8 | INHIBIT_DEFAULT_DEPS = "1" | 8 | INHIBIT_DEFAULT_DEPS = "1" |
9 | 9 | ||