aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-02-07 03:04:38 +0000
committerBill Nottingham <notting@redhat.com>2002-02-07 03:04:38 +0000
commit31ae312ff2d28e16ade83f4b847816c089b9d89a (patch)
tree5dfdc18910636e23ea2562e08569df68f9de0664
parent5267ace6f3638e1a33b6e473443d2396cdfdae65 (diff)
downloadinitscripts-31ae312ff2d28e16ade83f4b847816c089b9d89a.tar
initscripts-31ae312ff2d28e16ade83f4b847816c089b9d89a.tar.gz
initscripts-31ae312ff2d28e16ade83f4b847816c089b9d89a.tar.bz2
initscripts-31ae312ff2d28e16ade83f4b847816c089b9d89a.tar.xz
initscripts-31ae312ff2d28e16ade83f4b847816c089b9d89a.zip
fix netdev uses (#57314, <cajoline@chaosengine.de>)
-rwxr-xr-xrc.d/init.d/netfs3
1 files changed, 2 insertions, 1 deletions
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