Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (aab473e5afc16107c9a6cc5513bd86d99141985d)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (aab473e5afc16107c9a6cc5513bd86d99141985d)
  • Date: Wed, 29 Oct 2008 13:15:41 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

audio-drivers/alsa-utils/DETAILS | 2 -
audio-drivers/alsa-utils/HISTORY | 3 ++
audio-drivers/alsa-utils/PREPARE | 8 ++---
audio-drivers/alsa-utils/init.d/alsa-state | 43
+++++++++++++++++++++++++++++
4 files changed, 51 insertions(+), 5 deletions(-)

New commits:
commit aab473e5afc16107c9a6cc5513bd86d99141985d
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

alsa-utils: added utils-related init script

diff --git a/audio-drivers/alsa-utils/DETAILS
b/audio-drivers/alsa-utils/DETAILS
index 692a358..9644bbd 100755
--- a/audio-drivers/alsa-utils/DETAILS
+++ b/audio-drivers/alsa-utils/DETAILS
@@ -1,6 +1,6 @@
SPELL=alsa-utils
if [[ $ALSA_UTILS_GIT == y ]]; then
- if [[ $ALSA_UTILS_GIT_AUTOUPDATE == y ]]; then
+ if [[ $ALSA_UTILS_GIT_AUTOUPDATE == y ]]; then
VERSION=$(date +%Y%m%d)
else
VERSION=git
diff --git a/audio-drivers/alsa-utils/HISTORY
b/audio-drivers/alsa-utils/HISTORY
index 79c4cdd..d71c04b 100644
--- a/audio-drivers/alsa-utils/HISTORY
+++ b/audio-drivers/alsa-utils/HISTORY
@@ -1,3 +1,6 @@
+2008-10-29 Vlad Glagolev <stealth AT sourcemage.org>
+ * init.d/alsa-state: added, utils-related init stuff
+
2008-10-13 Pol Vinogradov <vin.public AT gmail.com>
* DETAILS: updated to 1.0.18rc3
* DEPENDS: needs xmlto for manual pages
diff --git a/audio-drivers/alsa-utils/PREPARE
b/audio-drivers/alsa-utils/PREPARE
index 6c3930b..25a1d02 100755
--- a/audio-drivers/alsa-utils/PREPARE
+++ b/audio-drivers/alsa-utils/PREPARE
@@ -1,6 +1,6 @@
-config_query ALSA_UTILS_GIT "Build latest version from development tree?"
n &&
+config_query ALSA_UTILS_GIT "Build latest version from development tree?" n
&&

-if [[ $ALSA_UTILS_GIT == y ]]; then
- config_query ALSA_UTILS_GIT_AUTOUPDATE \
- "Automatically update on every system update?" n
+if [[ $ALSA_UTILS_GIT == y ]]; then
+ config_query ALSA_UTILS_GIT_AUTOUPDATE \
+ "Automatically update on every system update?" n
fi
diff --git a/audio-drivers/alsa-utils/init.d/alsa-state
b/audio-drivers/alsa-utils/init.d/alsa-state
new file mode 100755
index 0000000..8e4757b
--- /dev/null
+++ b/audio-drivers/alsa-utils/init.d/alsa-state
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+. /etc/sysconfig/alsa
+
+PROGRAM=/bin/false
+RUNLEVEL=3
+NEEDS="+remote_fs"
+
+declare -r ASOUNDCFG=/etc/asound.state
+
+. /etc/init.d/smgl_init
+
+start() {
+ [[ "$START_ALSA" == no ]] && exit 0
+
+ #
+ # restore driver settings
+ #
+ if [[ -d /proc/asound ]]; then
+ if ! [[ -r "$ASOUNDCFG" ]]; then
+ echo "No mixer config in $ASOUNDCFG, you have to unmute your card!"
+ else
+ echo "Restoring settings..."
+ sleep 5
+ /usr/sbin/alsactl -F -f $ASOUNDCFG restore
+ evaluate_retval
+ fi
+ fi
+}
+
+stop() {
+ #
+ # store driver settings
+ #
+ echo "Saving settings..."
+ /usr/sbin/alsactl -f $ASOUNDCFG store
+ evaluate_retval
+
+ #
+ # mute master to avoid clicks at unload
+ #
+ /usr/bin/amixer set Master mute >/dev/null 2>&1
+}



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (aab473e5afc16107c9a6cc5513bd86d99141985d), Vlad Glagolev, 10/29/2008

Archive powered by MHonArc 2.6.24.

Top of Page