summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-21 18:49:50 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-21 18:49:50 +0100
commit98365c58b1da7d2d420667bf9ec5cbb4684d4971 (patch)
tree104b57aab255272aded4e2a6ef78e607744ed5ce
parent2440d844c6f493a8439c493adca88caf5e0da58f (diff)
use more variables for init skript
-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