|
@@ -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
|
|
|
|