summaryrefslogtreecommitdiff
blob: 967bc59592f5693f8a5f3c48b21928de3954be09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/setmixer/files/setmixer.rc,v 1.2 2004/07/14 22:51:07 agriffis Exp $

start() {
	ebegin "Loading mixer settings"
	[ ! -e /etc/setmixer.conf ] && setmixer -V | sed -e 's:-::' > /etc/setmixer.conf 
	setmixer $(cat /etc/setmixer.conf)
	eend $?
}

stop() {
	ebegin "Saving mixer settings"
	setmixer -V | awk '{print $1" "$3}' > /etc/setmixer.conf
	eend $?
}