Ignore machine-check MSRs
[freebsd-src/fkvm-freebsd.git] / share / examples / nwclient / nwfs.sh.sample
blobcb8b631f0b7d92a2961767d0269f385c1f916e98
1 #!/bin/sh
3 # $FreeBSD$
5 # Location: /usr/local/etc/rc.d/nwfs.sh
7 # Simple script to mount NetWare volumes at startup.
8 # It assumes that all mount points described in fstab file and password
9 # entries listed in /root/.nwfsrc file. See mount_nwfs(8) for details.
12 mount=/sbin/mount
13 umount=/sbin/umount
14 HOME=/root; export HOME
15 vols="/nw/sys /nw/vol1"
17 if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
18 echo -n "Mounting NetWare volumes: "
19 for vol in ${vols}; do
20 $mount $vol
21 echo -n "$vol "
22 done
23 echo "Done"
24 elif [ "x$1" = "xstop" ]; then
25 echo -n "Unmounting NetWare mount points: "
26 for vol in ${vols}; do
27 $umount $vol
28 echo -n "$vol "
29 done
30 echo "Done"
31 else
32 echo "Unknown command $1"