|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /usr/sbin/ |
Upload File : |
#!/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