Splitting out a first bunch of functions out to /live/live/boot/.
[debian-live-boot/hramrach.git] / scripts / boot / mount-cifs.sh
blob24fef8882ee79851b6fccca5bbc54d79cbe54d61
1 #!/bin/sh
3 do_cifsmount ()
5 rc=1
7 if [ -x "/sbin/mount.cifs" ]
8 then
9 if [ -z "${NFSOPTS}" ]
10 then
11 CIFSOPTS="-ouser=root,password="
12 else
13 CIFSOPTS="-o ${NFSOPTS}"
16 log_begin_msg "Trying mount.cifs ${NFSROOT} ${mountpoint} ${CIFSOPTS}"
17 modprobe -q cifs
19 if mount.cifs "${NFSROOT}" "${mountpoint}" "${CIFSOPTS}"
20 then
21 rc=0
25 return ${rc}