diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-21 18:49:50 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-21 18:49:50 +0100 |
commit | 98365c58b1da7d2d420667bf9ec5cbb4684d4971 (patch) | |
tree | 104b57aab255272aded4e2a6ef78e607744ed5ce /package/alsa-utils/files | |
parent | 2440d844c6f493a8439c493adca88caf5e0da58f (diff) |
use more variables for init skript
Diffstat (limited to 'package/alsa-utils/files')
-rw-r--r-- | package/alsa-utils/files/alsa-utils.postinst | 3 | ||||
-rw-r--r-- | package/alsa-utils/files/amixer.init | 9 |
2 files changed, 5 insertions, 7 deletions
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 |