diff options
Diffstat (limited to 'media-sound/alsa-utils/files/alsa-0.5.10')
-rw-r--r-- | media-sound/alsa-utils/files/alsa-0.5.10 | 23 |
1 files changed, 23 insertions, 0 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 +} |