* Added cifs to mountnfs.sh and umountnfs.sh.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
mount_nfs=no
mount_smb=no
mount_ncp=no
+mount_cifs=no
while read device mountpt fstype options
do
case "$device" in
then
mount_ncp=yes
fi
+ if test "$fstype" = cifs
+ then
+ mount_cifs=yes
+ fi
done
exec 0>&1
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
echo "Mounting remote filesystems..."
test "$mount_nfs" = yes && mount -a -t nfs
test "$mount_smb" = yes && mount -a -t smbfs
test "$mount_ncp" = yes && mount -a -t ncpfs
+ test "$mount_cifs" = yes && mount -a -t cifs
fi
) < /etc/fstab
#
while read device mountpt fstype options
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
umount -f $mountpt
fi
SECTION = "base"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
-PR = "r130"
+PR = "r131"
INHIBIT_DEFAULT_DEPS = "1"