SOURCES: alsasound.init - fixed force-reload, added try-restart
qboosh
qboosh at pld-linux.org
Wed Nov 5 20:07:48 CET 2008
Author: qboosh Date: Wed Nov 5 19:07:48 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fixed force-reload, added try-restart
---- Files affected:
SOURCES:
alsasound.init (1.19 -> 1.20)
---- Diffs:
================================================================
Index: SOURCES/alsasound.init
diff -u SOURCES/alsasound.init:1.19 SOURCES/alsasound.init:1.20
--- SOURCES/alsasound.init:1.19 Fri Nov 9 12:14:30 2007
+++ SOURCES/alsasound.init Wed Nov 5 20:07:43 2008
@@ -147,6 +147,16 @@
fi
}
+condrestart() {
+ if [ -f /var/lock/subsys/alsasound ]; then
+ stop
+ start
+ else
+ msg_not_running "ALSA driver"
+ RETVAL=$1
+ fi
+}
+
# See how we were called.
case "$1" in
@@ -156,15 +166,21 @@
stop)
stop
;;
- restart|force-reload)
+ restart)
stop
start
;;
+ try-restart)
+ condrestart 0
+ ;;
+ force-reload)
+ condrestart 7
+ ;;
status)
# TODO
;;
*)
- msg_usage "$0 {start|stop|restart|force-reload|status}"
+ msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
exit 3
esac
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/alsasound.init?r1=1.19&r2=1.20&f=u
More information about the pld-cvs-commit
mailing list