summaryrefslogtreecommitdiff
path: root/package/alsa-utils
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-21 19:10:59 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-21 19:10:59 +0100
commitaca11dbcbc56c0c4bb4e0dbb46c28a10f48c4693 (patch)
tree3730e9307af271f6d4a2a866adfc6ae7a65c583d /package/alsa-utils
parentb8074629774161e2cea19c704aaea9d3e482e290 (diff)
parent18430215845a1ba4adab10062d33204fd26bd8fb (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/alsa-utils')
-rw-r--r--package/alsa-utils/Makefile2
-rw-r--r--package/alsa-utils/files/alsa-utils.postinst3
-rw-r--r--package/alsa-utils/files/amixer.init9
3 files changed, 6 insertions, 8 deletions
diff --git a/package/alsa-utils/Makefile b/package/alsa-utils/Makefile
index 602444248..63ce6faf5 100644
--- a/package/alsa-utils/Makefile
+++ b/package/alsa-utils/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= alsa-utils
PKG_VERSION:= 1.0.22
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= f7180316188552ee1e6759a03f1fe98d
PKG_DESCR:= ALSA mixer utility
PKG_SECTION:= utils
diff --git a/package/alsa-utils/files/alsa-utils.postinst b/package/alsa-utils/files/alsa-utils.postinst
index f18dbf62a..bd4ff3be2 100644
--- a/package/alsa-utils/files/alsa-utils.postinst
+++ b/package/alsa-utils/files/alsa-utils.postinst
@@ -1,4 +1,5 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
add_rcconf amixer
-
+add_rcconf amixer_volume amixer_volume "75%"
+add_rcconf amixer_mixer amixer_mixer "Master"
diff --git a/package/alsa-utils/files/amixer.init b/package/alsa-utils/files/amixer.init
index d7f388892..7f5f37177 100644
--- a/package/alsa-utils/files/amixer.init
+++ b/package/alsa-utils/files/amixer.init
@@ -10,14 +10,11 @@ autostart)
exec sh $0 start
;;
start)
- amixer set Master on
- amixer set PCM on
- amixer set Master 75%
- amixer set PCM 75%
+ amixer set $amixer_mixer on
+ amixer set $amixer_mixer $amixer_volume
;;
stop)
- amixer set Master off
- amixer set PCM off
+ amixer set $amixer_mixer off
;;
restart)
sh $0 stop