config root man

Current Path : /usr/src/contrib/amd/scripts/

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
Upload File :
Current File : //usr/src/contrib/amd/scripts/fixrmtab.in

#!/bin/sh
#
# Invalidate /etc/rmtab entries for hosts named.
# Restart mountd for changes to take effect.
#
# usage: fixrmtab host1 host2 ...
#
# Package:	am-utils-6.x
# Author:	Andreas Stolcke <stolcke@icsi.berkeley.edu>

#set -x

RMTAB=/etc/rmtab
TMP=/tmp/rmtab.$$

if [ ! -f /etc/rmtab ]; then
	exit 0
fi

for host in $*
do
	sed -e '/^'$host':/s/^./#/' $RMTAB > $TMP && cp $TMP $RMTAB
done
rm -f $TMP

Man Man