diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2002-04-28 21:03:09 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2002-04-28 21:03:09 +0000 |
commit | 1786a3d89299623d48028d964bad100226df2c0a (patch) | |
tree | 53954f5e6c97291edb8edd898f72c5fa232e5e85 /media-sound/alsa-utils/files | |
parent | extra tar.gz (diff) | |
download | gentoo-2-1786a3d89299623d48028d964bad100226df2c0a.tar.gz gentoo-2-1786a3d89299623d48028d964bad100226df2c0a.tar.bz2 gentoo-2-1786a3d89299623d48028d964bad100226df2c0a.zip |
Fixes a bug with alsa 0.5.10
Diffstat (limited to 'media-sound/alsa-utils/files')
-rw-r--r-- | media-sound/alsa-utils/files/alsa-0.5.10 | 23 | ||||
-rw-r--r-- | media-sound/alsa-utils/files/digest-alsa-utils-0.5.10-r6 | 1 | ||||
-rw-r--r-- | media-sound/alsa-utils/files/digest-alsa-utils-0.5.10-r7 | 1 | ||||
-rw-r--r-- | media-sound/alsa-utils/files/digest-alsa-utils-0.5.10-r8 (renamed from media-sound/alsa-utils/files/digest-alsa-utils-0.5.10) | 0 |
4 files changed, 23 insertions, 2 deletions
diff --git a/media-sound/alsa-utils/files/alsa-0.5.10 b/media-sound/alsa-utils/files/alsa-0.5.10 new file mode 100644 index 000000000000..9d73fdad55cc --- /dev/null +++ b/media-sound/alsa-utils/files/alsa-0.5.10 @@ -0,0 +1,23 @@ +#!/sbin/runscript + +depend() { + need modules +} + +start() { + if [ -e /etc/asound.conf ] + then + ebegin "Restoring ALSA volume settings" + /usr/sbin/alsactl restore + else + ebegin "/etc/asound.conf not found, ALSA muted" + fi + eend $? +} + +stop() { + ebegin "Saving ALSA volume settings" + /usr/sbin/alsactl store + eend + #will fail if no modules were loaded, so we don't process the return val +} diff --git a/media-sound/alsa-utils/files/digest-alsa-utils-0.5.10-r6 b/media-sound/alsa-utils/files/digest-alsa-utils-0.5.10-r6 deleted file mode 100644 index 779df014a529..000000000000 --- a/media-sound/alsa-utils/files/digest-alsa-utils-0.5.10-r6 +++ /dev/null @@ -1 +0,0 @@ -MD5 16ef72c810397409f1dc3cc31b6bcb4e alsa-utils-0.5.10.tar.bz2 115414 diff --git a/media-sound/alsa-utils/files/digest-alsa-utils-0.5.10-r7 b/media-sound/alsa-utils/files/digest-alsa-utils-0.5.10-r7 deleted file mode 100644 index 779df014a529..000000000000 --- a/media-sound/alsa-utils/files/digest-alsa-utils-0.5.10-r7 +++ /dev/null @@ -1 +0,0 @@ -MD5 16ef72c810397409f1dc3cc31b6bcb4e alsa-utils-0.5.10.tar.bz2 115414 diff --git a/media-sound/alsa-utils/files/digest-alsa-utils-0.5.10 b/media-sound/alsa-utils/files/digest-alsa-utils-0.5.10-r8 index 779df014a529..779df014a529 100644 --- a/media-sound/alsa-utils/files/digest-alsa-utils-0.5.10 +++ b/media-sound/alsa-utils/files/digest-alsa-utils-0.5.10-r8 |