1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 12:49:46 +00:00

initscripts: mount and unmount cifs network filesystems

* Added cifs to mountnfs.sh and umountnfs.sh.

(From OE-Core rev: c44e51f281101c8933679f679e3d4a75a41bedf7)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Andreas Oberritter
2012-02-24 21:27:34 +01:00
committed by Richard Purdie
parent ee86f899e1
commit e894f0e71c
3 changed files with 9 additions and 3 deletions
@@ -23,6 +23,7 @@ portmap=no
mount_nfs=no mount_nfs=no
mount_smb=no mount_smb=no
mount_ncp=no mount_ncp=no
mount_cifs=no
while read device mountpt fstype options while read device mountpt fstype options
do do
case "$device" in case "$device" in
@@ -56,6 +57,10 @@ do
then then
mount_ncp=yes mount_ncp=yes
fi fi
if test "$fstype" = cifs
then
mount_cifs=yes
fi
done done
exec 0>&1 exec 0>&1
@@ -70,12 +75,13 @@ then
fi fi
fi fi
if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes || test "$mount_cifs" = yes
then then
echo "Mounting remote filesystems..." echo "Mounting remote filesystems..."
test "$mount_nfs" = yes && mount -a -t nfs test "$mount_nfs" = yes && mount -a -t nfs
test "$mount_smb" = yes && mount -a -t smbfs test "$mount_smb" = yes && mount -a -t smbfs
test "$mount_ncp" = yes && mount -a -t ncpfs test "$mount_ncp" = yes && mount -a -t ncpfs
test "$mount_cifs" = yes && mount -a -t cifs
fi fi
) < /etc/fstab ) < /etc/fstab
@@ -23,7 +23,7 @@ test -f /etc/fstab && (
# #
while read device mountpt fstype options while read device mountpt fstype options
do do
if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs || test "$fstype" = cifs
then then
umount -f $mountpt umount -f $mountpt
fi fi
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
SECTION = "base" SECTION = "base"
LICENSE = "GPLv2" LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
PR = "r130" PR = "r131"
INHIBIT_DEFAULT_DEPS = "1" INHIBIT_DEFAULT_DEPS = "1"