mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Not part of AM-UTILS any longer. Should be build from fixrmtab.in.
This commit is contained in:
parent
a424235073
commit
8e075b1204
1 changed files with 0 additions and 24 deletions
|
|
@ -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
|
||||
Loading…
Reference in a new issue