From 903bc93eec508359479d00b11a3e5331a414c40f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 12 Aug 2004 16:29:47 +0000 Subject: fix nfs unmounting (#129765) --- rc.d/init.d/network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d/init.d/network') diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 3dbaaf50..80afd8fc 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -182,7 +182,7 @@ case "$1" in # and unmount them even if the user didn't turn on netfs if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then - NFSMTAB=`LC_ALL=C awk '!/^#/ && $3 == "nfs" { print $2 }' /proc/mounts` + NFSMTAB=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ { print $2 }' /proc/mounts` SMBMTAB=`LC_ALL=C awk '!/^#/ && $3 == "smbfs" { print $2 }' /proc/mounts` NCPMTAB=`LC_ALL=C awk '!/^#/ && $3 == "ncpfs" { print $2 }' /proc/mounts` if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then -- cgit v1.2.1