alsa-state: add status command
(From OE-Core rev: c8d687f409a19312b34e215e7caaa39199598ed0) Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
813aafe538
commit
44c6911877
|
@ -6,6 +6,8 @@
|
|||
# Filename: alsa-state
|
||||
# Date: 20070308 (YMD)
|
||||
|
||||
# source function library
|
||||
. /etc/init.d/functions
|
||||
|
||||
asound_restore(){
|
||||
echo "ALSA: Restoring mixer settings..."
|
||||
|
@ -26,4 +28,12 @@ asound_store(){
|
|||
case "$1" in
|
||||
start) asound_restore ;;
|
||||
stop) asound_store ;;
|
||||
status)
|
||||
status /usr/sbin/alsactl;
|
||||
exit $?
|
||||
;;
|
||||
*)
|
||||
echo "Usage: /etc/init.d/alsa-state {start|stop|status}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue