summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/initscripts')
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh8
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh2
-rw-r--r--meta/recipes-core/initscripts/initscripts_1.0.bb2
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
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
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#
24while read device mountpt fstype options 24while read device mountpt fstype options
25do 25do
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
3SECTION = "base" 3SECTION = "base"
4LICENSE = "GPLv2" 4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 5LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
6PR = "r130" 6PR = "r131"
7 7
8INHIBIT_DEFAULT_DEPS = "1" 8INHIBIT_DEFAULT_DEPS = "1"
9 9