#!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ 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 $? }