[Pkg-alsa-devel] [Debian ALSA CVS] debian/alsa-driver/debian (alsa-base.init)
Thomas Hood
jdthood-guest@haydn.debian.org
Thu, 09 Sep 2004 07:44:44 -0600
Date: Thursday, September 9, 2004 @ 07:44:44
Author: jdthood-guest
Path: /cvsroot/pkg-alsa/debian/alsa-driver/debian
Modified: alsa-base.init
Deal more carefully with function exit statuses
----------------+
alsa-base.init | 30 ++++++++++++++++++++----------
1 files changed, 20 insertions(+), 10 deletions(-)
Index: debian/alsa-driver/debian/alsa-base.init
diff -u debian/alsa-driver/debian/alsa-base.init:1.55 debian/alsa-driver/debian/alsa-base.init:1.56
--- debian/alsa-driver/debian/alsa-base.init:1.55 Thu Sep 9 07:12:07 2004
+++ debian/alsa-driver/debian/alsa-base.init Thu Sep 9 07:44:44 2004
@@ -121,15 +121,25 @@
}
case "$1" in
- start) start ;;
- stop) stop ;;
- restart) stop || : ; start ;;
- reload) stop || : ; start ;;
- force-stop) force_stop ;;
- force-restart) force_stop || : ; start ;;
- force-reload) force-stop || : ; start ;;
+ start)
+ start || exit $?
+ ;;
+ stop)
+ stop || exit $?
+ ;;
+ restart|reload)
+ stop || :
+ start || exit $?
+ ;;
+ force-stop)
+ force_stop || exit $?
+ ;;
+ force-restart|force-reload)
+ force_stop || :
+ start || exit $?
+ ;;
*)
- echo "Usage: /etc/init.d/alsa {start|stop|restart|reload|force-stop|force-restart|force-reload}" >&2
- exit 3
- ;;
+ echo "Usage: /etc/init.d/alsa {start|stop|restart|reload|force-stop|force-restart|force-reload}" >&2
+ exit 3
+ ;;
esac