diff options
Diffstat (limited to 'scripts/boot/mount-cifs.sh')
-rwxr-xr-x | scripts/boot/mount-cifs.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/boot/mount-cifs.sh b/scripts/boot/mount-cifs.sh new file mode 100755 index 0000000..24fef88 --- /dev/null +++ b/scripts/boot/mount-cifs.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +do_cifsmount () +{ + rc=1 + + if [ -x "/sbin/mount.cifs" ] + then + if [ -z "${NFSOPTS}" ] + then + CIFSOPTS="-ouser=root,password=" + else + CIFSOPTS="-o ${NFSOPTS}" + fi + + log_begin_msg "Trying mount.cifs ${NFSROOT} ${mountpoint} ${CIFSOPTS}" + modprobe -q cifs + + if mount.cifs "${NFSROOT}" "${mountpoint}" "${CIFSOPTS}" + then + rc=0 + fi + fi + + return ${rc} +} |