Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / am-utils / dist / scripts / fixrmtab.in
blob23003806e4c021af5fa70bc15d0f6e2108ff63b9
1 #!/bin/sh
3 # Invalidate /etc/rmtab entries for hosts named.
4 # Restart mountd for changes to take effect.
6 # usage: fixrmtab host1 host2 ...
8 # Package: am-utils-6.x
9 # Author: Andreas Stolcke <stolcke@icsi.berkeley.edu>
11 #set -x
13 RMTAB=/etc/rmtab
14 TMP=/tmp/rmtab.$$
16 if [ ! -f /etc/rmtab ]; then
17 exit 0
20 for host in $*
22 sed -e '/^'$host':/s/^./#/' $RMTAB > $TMP && cp $TMP $RMTAB
23 done
24 rm -f $TMP