From e36d9412da6cf1d19c213044da643db7c41d436f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 25 Jan 2002 06:35:43 +0000 Subject: fix netdev uses (#57314, ) --- rc.d/init.d/netfs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rc.d/init.d') diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs index dbd8b58a..53c49089 100755 --- a/rc.d/init.d/netfs +++ b/rc.d/init.d/netfs @@ -25,7 +25,7 @@ fi NFSFSTAB=`grep -v '^#' /etc/fstab | awk '{ if ($3 ~ /^nfs$/ && $4 !~ /noauto/) print $2}'` SMBFSTAB=`grep -v '^#' /etc/fstab | awk '{ if ($3 ~ /^smbfs$/ && $4 !~ /noauto/) print $2}'` NCPFSTAB=`grep -v '^#' /etc/fstab | awk '{ if ($3 ~ /^ncpfs$/ && $4 !~ /noauto/) print $2}'` -NETDEVMTAB=`grep -v '^#' /proc/mounts | awk '{ if (($4 ~ /_netdev$/) && ($2 != "/")) print $2}'` +NETDEVMTAB=`grep -v '^#' /proc/mounts | awk '{ if (($4 ~ /_netdev/) && ($2 != "/")) print $2}'` NFSMTAB=`grep -v '^#' /proc/mounts | awk '{ if (($3 ~ /nfs$/) && ($2 != "/")) print $2}'` SMBMTAB=`grep -v '^#' /proc/mounts | awk '{ if ($3 ~ /^smbfs$/ ) print $2}'` NCPMTAB=`grep -v '^#' /proc/mounts | awk '{ if ($3 ~ /^ncpfs$/ ) print $2}'` @@ -73,6 +73,7 @@ case "$1" in [ -n "$NETDEVMTAB" ] && { sig= retry=3 + remaining=`awk '!/^#/ && $4 ~ /_netdev/ && $2 != "/" {print $2}' /proc/mounts` while [ -n "$remaining" -a "$retry" -gt 0 ] do if [ "$retry" -lt 3 ]; then -- cgit v1.2.1