blob: d2f36ed3e2a849594e59093a071e3f1acdd18688 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/media-sound/aumix/files/aumix.rc6,v 1.2 2003/01/26 01:59:01 agenkin Exp $
depend() {
need modules
use alsa
}
checkconfig() {
if [ -z "`grep 'sound' /proc/devices`" ] && [ ! -d /proc/asound ]
then
eerror "Sound support has not been compiled into the kernel,"
eerror "or is disabled. Please check that the correct modules"
eerror "is loaded."
return 1
fi
# /dev/mixer can be a symlink
if [ ! -e /dev/mixer ] ; then
eerror "/dev/mixer do not exist, please create it, or load the"
eerror "correct modules to enable your card's mixer"
return 1
fi
}
start() {
checkconfig || return 1
if [ -f /etc/aumixrc ] ; then
ebegin "Loading Mixer settings"
/usr/bin/aumix -f /etc/aumixrc -L >/dev/null 2>&1
else
ebegin "Setting Mixer settings"
/usr/bin/aumix -v75 -c75 -w75 >/dev/null 2>&1
fi
eend $?
}
stop() {
checkconfig || return 1
ebegin "Saving Mixer settings"
/usr/bin/aumix -f /etc/aumixrc -S >/dev/null 2>&1
eend $?
}
|