aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-02-23 23:12:04 +0000
committerBill Nottingham <notting@redhat.com>2005-02-23 23:12:04 +0000
commit9356e9d8daf3cc68f49af30f17a172dedf4dee77 (patch)
tree23fea1d81242b85f90f4b0b3be5a3b8651460dff
parentf0b977c40e23d3ba281d40644d97c98c8a7dae0f (diff)
downloadinitscripts-9356e9d8daf3cc68f49af30f17a172dedf4dee77.tar
initscripts-9356e9d8daf3cc68f49af30f17a172dedf4dee77.tar.gz
initscripts-9356e9d8daf3cc68f49af30f17a172dedf4dee77.tar.bz2
initscripts-9356e9d8daf3cc68f49af30f17a172dedf4dee77.tar.xz
initscripts-9356e9d8daf3cc68f49af30f17a172dedf4dee77.zip
backport nfs fix (#149546, #129765)
-rwxr-xr-xrc.d/init.d/netfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs
index a5469a5d..31a7762d 100755
--- a/rc.d/init.d/netfs
+++ b/rc.d/init.d/netfs
@@ -19,12 +19,12 @@
# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0
-NFSFSTAB=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $4 !~ /noauto/ { print $2 }' /etc/fstab`
+NFSFSTAB=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
SMBFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "smbfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
CIFSFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
NCPFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
NETDEVMTAB=`LC_ALL=C awk '!/^#/ && $4 ~ /_netdev/ && $2 != "/" { print $2 }' /proc/mounts`
-NFSMTAB=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $2 != "/" { print $2 }' /proc/mounts`
+NFSMTAB=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts`
SMBMTAB=`LC_ALL=C awk '!/^#/ && $3 == "smbfs" { print $2 }' /proc/mounts`
CIFSMTAB=`LC_ALL=C awk '!/^#/ && $3 == "cifs" { print $2 }' /proc/mounts`
NCPMTAB=`LC_ALL=C awk '!/^#/ && $3 == "ncpfs" { print $2 }' /proc/mounts`