blob: cfc805eeccd5215cba55d3e60f86f3968e64778a (
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/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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 $?
}
|