diff options
Diffstat (limited to 'rc.d/init.d/netfs')
| -rwxr-xr-x | rc.d/init.d/netfs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs index 8609e813..a395fb77 100755 --- a/rc.d/init.d/netfs +++ b/rc.d/init.d/netfs @@ -144,7 +144,7 @@ case "$1" in [ -n "$NFSMTAB" ] && { sig= retry=3 - remaining=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $2 != "/" {print $2}' /proc/mounts` + remaining=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $2 != "/" {print $2}' /proc/mounts | sort -r` while [ -n "$remaining" -a "$retry" -gt 0 ] do if [ "$retry" -lt 3 ]; then @@ -153,7 +153,7 @@ case "$1" in action $"Unmounting NFS filesystems: " umount -f -l $remaining fi sleep 2 - remaining=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $2 != "/" {print $2}' /proc/mounts` + remaining=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $2 != "/" {print $2}' /proc/mounts | sort -r` [ -z "$remaining" ] && break /sbin/fuser -k -m $sig $remaining >/dev/null sleep 5 |
