]> git.pld-linux.org Git - packages/nfs-utils.git/commitdiff
- fixed behavior while no nfs volumes is mounted
authorPaweł Gołaszewski <blues@pld-linux.org>
Fri, 25 Jan 2002 22:17:50 +0000 (22:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nfsfs.init -> 1.8

nfsfs.init

index ae50b03aad6c722f8f2084740facaace7297c874..4ca4a86f2f797bdda0bcb2d9edcb02370f29e992 100644 (file)
@@ -47,10 +47,14 @@ case "$1" in
 
        show "Unmounting NFS filesystems"
        busy
-       fuser -msk -TERM `awk '$3 == "nfs" {print $2}' < $fsfile`
-       sleep 2
-       fuser -msk -KILL `awk '$3 == "nfs" {print $2}' < $fsfile`
-       umount -a -t nfs
+       remaining=$(awk '$3 == "nfs" {print $2}' $fsfile)
+       while [ -n "$remaining" -a 3 -gt 0 ]
+       do
+               fuser -msk -TERM `awk '$3 == "nfs" {print $2}' < $fsfile`
+               sleep 2
+               fuser -msk -KILL `awk '$3 == "nfs" {print $2}' < $fsfile`
+               umount -a -t nfs
+       done
        deltext
        ok
        rm -f /var/lock/subsys/nfsfs
This page took 0.047103 seconds and 4 git commands to generate.