Move check for block device to mount_persistence_media().
[debian-live-boot.git] / components / 9990-mount-cifs.sh
blob8dd181807c247c0934e3b33536f2144c79786b24
1 #!/bin/sh
3 #set -e
5 do_cifsmount ()
7 rc=1
9 if [ -x "/sbin/mount.cifs" ]
10 then
11 if [ -z "${NFSOPTS}" ]
12 then
13 CIFSOPTS="-o user=root,password="
14 else
15 CIFSOPTS="-o ${NFSOPTS}"
18 log_begin_msg "Trying mount.cifs ${NFSROOT} ${mountpoint} ${CIFSOPTS}"
19 modprobe -q cifs
21 if mount.cifs "${NFSROOT}" "${mountpoint}" ${CIFSOPTS}
22 then
23 rc=0
27 return ${rc}