Another update. Clarify that a shared spinlock can be acquired while holding
[dragonfly.git] / share / examples / nwclient / nwfs.sh.sample
1 #!/bin/sh
2 #
3 # $FreeBSD: src/share/examples/nwclient/nwfs.sh.sample,v 1.1 1999/11/03 12:06:13 bp Exp $
4 # $DragonFly: src/share/examples/nwclient/nwfs.sh.sample,v 1.2 2003/06/17 04:36:57 dillon Exp $
5 #
6 # Location: /usr/local/etc/rc.d/nwfs.sh
7 #
8 # Simple script to mount NetWare volumes at startup.
9 # It assumes that all mount points described in fstab file and password
10 # entries listed in /root/.nwfsrc file. See mount_nwfs(8) for details.
11 #
12
13 mount=/sbin/mount
14 umount=/sbin/umount
15 HOME=/root; export HOME
16 vols="/nw/sys /nw/vol1"
17
18 if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
19         echo -n "Mounting NetWare volumes: "
20         for vol in ${vols}; do
21                 $mount $vol
22                 echo -n "$vol "
23         done
24         echo "Done"
25 elif [ "x$1" = "xstop" ]; then
26         echo -n "Unmounting NetWare mount points: "
27         for vol in ${vols}; do
28                 $umount $vol
29                 echo -n "$vol "
30         done
31         echo "Done"
32 else
33         echo "Unknown command $1"
34 fi
35