blob: 10383d56ae8a31d509b38a11131b5cd2b86351cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
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 $?
}
|