| 
															
																@@ -7,7 +7,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 #       Also based on init script mountnfs.sh from initscripts package. 
															 | 
															
															 | 
															
																 #       Also based on init script mountnfs.sh from initscripts package. 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 # 
															 | 
															
															 | 
															
																 # 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 #       Modified for aoetools by David Martínez Moreno <ender@debian.org>. 
															 | 
															
															 | 
															
																 #       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. 
															 | 
															
															 | 
															
																 #       Support for LVM and other mount points contributed by Glen W. Mabey. 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 # 
															 | 
															
															 | 
															
																 # 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -146,6 +146,10 @@ do_stop() { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     if [ -n "$waitaoe" ] 
															 | 
															
															 | 
															
																     if [ -n "$waitaoe" ] 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     then 
															 | 
															
															 | 
															
																     then 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         for mountpt in $waitaoe; do 
															 | 
															
															 | 
															
																         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..." 
															 | 
															
															 | 
															
																             echo "Unmounting $mountpt..." 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             umount $mountpt 
															 | 
															
															 | 
															
																             umount $mountpt 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         done 
															 | 
															
															 | 
															
																         done 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -171,7 +175,7 @@ case "$1" in 
															 | 
														
													
												
													
														
															| 
															 | 
															
																      
															 | 
															
															 | 
															
																      
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	;; 
															 | 
															
															 | 
															
																 	;; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																   stop) 
															 | 
															
															 | 
															
																   stop) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-	echo -n "Stopping $DESC: " 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+	echo "Stopping $DESC: " 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																     do_stop 
															 | 
															
															 | 
															
																     do_stop 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 |