00 14/11/2004 21:44
voyager:root # more S15nfs.server
#!/sbin/sh
#
# Copyright (c) 1997-1999 by Sun Microsystems, Inc.
# All rights reserved.
#
#pragma ident "@(#)nfs.server 1.30 99/06/10 SMI"
[ ! -d /usr/bin ] && exit
# Start/stop processes required for server NFS
case "$1" in
'start')
# Clean up old /etc/dfs/sharetab - remove all nfs entries
if [ -f /etc/dfs/sharetab ] ; then
>>/tmp/sharetab.$$
while read path res fstype opts desc; do
[ "x$fstype" != xnfs ] && \
echo "$path\t$res\t$fstype\t$opts\t$desc" \
>>>>/tmp/sharetab.$$
done # Retain the last modification time so that it can be truncated
# by the share command when it is called first time after boot.
/usr/bin/touch -r /etc/dfs/sharetab /tmp/sharetab.$$
/usr/bin/mv -f /tmp/sharetab.$$ /etc/dfs/sharetab
fi