summaryrefslogtreecommitdiff
blob: 37c9a4c5a8ccbf9f769bbc8bec01a975d56a367d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sparc-utils/files/audioctl.init,v 1.1 2003/11/01 13:06:43 weeve Exp $

checkconfig() {
	if [ -z "${PARAMS}" ]
	then
		eerror "Please make sure that /etc/conf.d/audioctl has \$PARAMS set"
		return 1
	fi
}
start() {
	checkconfig || return 1

	ebegin "Starting audioctl"
	if [ -n "${DEVICE}" ]; then
		/usr/bin/audioctl -f ${DEVICE} -nw ${PARAMS}
	else
		/usr/bin/audioctl -nw ${PARAMS}
	fi
	eend $?
}