Changed files:
alsasound.init -> 1.20
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
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