summaryrefslogtreecommitdiff
blob: d6cf2476681dfbb5fcc2881c8fb4a68ca14b0e47 (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
#!/bin/sh
#RCUPDATE:3 4 5:90:This line is required for script management

. /etc/rc.d/config/functions

SERVICE=ALSA
opts="start stop"

start() {
    if [ -e /etc/asound.conf ]
	then
		ebegin "Restoring ALSA volume settings..."
		/usr/sbin/alsactl restore
	else
		ebegin "/etc/asound.conf not found, ALSA muted..."
	fi
    eend $? 
}

stop() {
    ebegin "Saving ALSA volume settings..."
    /usr/sbin/alsactl store
	eend $? 
}

doservice ${@}