Adding temporary notes in a readme file.
[debian-live-boot/hramrach.git] / scripts / boot / mount-cifs.sh
bloba8ef3f45aae3334f134f376ca3fee344713fc9b5
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="-ouser=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}