From 7ad45d75c9fd1986ffc36b2a0c810e33b0114ebd Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 11 Jul 2006 18:12:42 +0000 Subject: /etc/mtab doesn't have comments --- rc.d/init.d/netfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs index 59693d11..c18348d6 100755 --- a/rc.d/init.d/netfs +++ b/rc.d/init.d/netfs @@ -30,7 +30,7 @@ NFSMTAB=`LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /p 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` -NETDEVMTAB=`LC_ALL=C awk '!/^#/ && $4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab` +NETDEVMTAB=`LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab` # See how we were called. case "$1" in -- cgit v1.2.1