You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/sparc-utils/files/audioctl.init

24 lines
461 B

#!/sbin/runscript
# 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 $?
}