Browse Source

Fixed part of #559335.

David Martínez Moreno 13 years ago
parent
commit
17ff61f80b
1 changed files with 6 additions and 2 deletions
  1. 6 2
      debian/aoetools.init

+ 6 - 2
debian/aoetools.init

@@ -7,7 +7,7 @@
 #       Also based on init script mountnfs.sh from initscripts package.
 #
 #       Modified for aoetools by David Martínez Moreno <ender@debian.org>.
-#       Copyright 2006-2007.  Under GPLv2.
+#       Copyright 2006-2010.  Under GPLv2.
 #
 #       Support for LVM and other mount points contributed by Glen W. Mabey.
 #
@@ -146,6 +146,10 @@ do_stop() {
     if [ -n "$waitaoe" ]
     then
         for mountpt in $waitaoe; do
+	    if [ -z "`awk '{print $2}' < /proc/mounts | grep -w $mountpt$`" ];then
+	        # It's already been unmounted.
+	    	continue
+	    fi
             echo "Unmounting $mountpt..."
             umount $mountpt
         done
@@ -171,7 +175,7 @@ case "$1" in
     
 	;;
   stop)
-	echo -n "Stopping $DESC: "
+	echo "Stopping $DESC: "
 
     do_stop