diff options
author | Li Wang <li.wang@windriver.com> | 2013-11-29 18:56:59 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-29 16:27:03 +0000 |
commit | c8d687f409a19312b34e215e7caaa39199598ed0 (patch) | |
tree | 11493df64c9552a990b609513392cf8a558e7b33 /meta/recipes-bsp | |
parent | a3f3f44f9a064a0158ce9ad12af7a7cb26042c97 (diff) | |
download | openembedded-core-c8d687f409a19312b34e215e7caaa39199598ed0.tar.gz openembedded-core-c8d687f409a19312b34e215e7caaa39199598ed0.tar.bz2 openembedded-core-c8d687f409a19312b34e215e7caaa39199598ed0.zip |
alsa-state: add status command
Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rwxr-xr-x | meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init b/meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init index 9850791497..eee59cb321 100755 --- a/meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init +++ b/meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init @@ -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 |