Current Path : /usr/src/share/examples/nwclient/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/share/examples/nwclient/nwfs.sh.sample |
#!/bin/sh # # $FreeBSD: release/9.1.0/share/examples/nwclient/nwfs.sh.sample 52839 1999-11-03 12:06:13Z bp $ # # Location: /usr/local/etc/rc.d/nwfs.sh # # Simple script to mount NetWare volumes at startup. # It assumes that all mount points described in fstab file and password # entries listed in /root/.nwfsrc file. See mount_nwfs(8) for details. # mount=/sbin/mount umount=/sbin/umount HOME=/root; export HOME vols="/nw/sys /nw/vol1" if [ "x$1" = "x" -o "x$1" = "xstart" ]; then echo -n "Mounting NetWare volumes: " for vol in ${vols}; do $mount $vol echo -n "$vol " done echo "Done" elif [ "x$1" = "xstop" ]; then echo -n "Unmounting NetWare mount points: " for vol in ${vols}; do $umount $vol echo -n "$vol " done echo "Done" else echo "Unknown command $1" fi