3 # from: Id: smbfs.sh.sample,v 1.3 2001/01/13 04:50:36 bp Exp
5 # Location: /usr/local/etc/rc.d/smbfs.sh
7 # Simple script to mount smbfs file systems at startup.
8 # It assumes that all mount points described in fstab file and password
9 # entries listed in /root/.nsmbrc file. See mount_smbfs(8) for details.
12 mount
="/sbin/mount -o -N"
14 HOME
=/root
; export HOME
15 vols
=`awk -- '/^\/.*[[:space:]]+smbfs[[:space:]]+/ { print $2 }' /etc/fstab`
20 for vol
in ${vols}; do
26 echo -n "unmounting smbfs mount points: "
27 for vol
in ${vols}; do
33 echo "Usage: `basename $0` {start|stop}" >&2