Not part of AM-UTILS any longer. Should be build from fixrmtab.in.

This commit is contained in:
David E. O'Brien 1998-11-20 05:21:40 +00:00
parent a424235073
commit 8e075b1204
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41264

View File

@ -1,24 +0,0 @@
#!/bin/sh
#
# Invalidate /etc/rmtab entries for hosts named.
# Restart mountd for changes to take effect.
#
# usage: fixrmtab host1 host2 ...
#
# Package: am-utils-6.0
# 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