Correcting log_end_msg usages in connection with verbosity checks in live-boot initsc...
authorDaniel Baumann <daniel@debian.org>
Fri, 30 Mar 2012 07:49:28 +0000 (09:49 +0200)
committerDaniel Baumann <daniel@debian.org>
Fri, 30 Mar 2012 07:49:28 +0000 (09:49 +0200)
debian/live-boot.init

index ab09d2a..fb6f662 100644 (file)
@@ -225,7 +225,7 @@ do_stop ()
 
 case "${1}" in
        start|restart|reload|force-reload|status)
-               [ "${VERBOSE}" != no ] && log_end_msg 0
+               [ "${VERBOSE}" != no ] && log_end_msg 0 || exit 0
                ;;
 
        stop)
@@ -234,11 +234,11 @@ case "${1}" in
 
                case "${?}" in
                        0|1)
-                               [ "${VERBOSE}" != no ] && log_end_msg 0
+                               [ "${VERBOSE}" != no ] && log_end_msg 0 || exit 0
                                ;;
 
                        2)
-                               [ "${VERBOSE}" != no ] && log_end_msg 1
+                               [ "${VERBOSE}" != no ] && log_end_msg 1 || exit 1
                                ;;
                esac
                ;;