#!/sbin/openrc-run

supervisor=supervise-daemon
description="ALSA hostless FE stream opener"
command="/usr/bin/dummystreamhack"
command_args="${RC_SVCNAME#*.}"

output_logger="logger -t "$RC_SVCNAME" -p daemon.info"
error_logger="logger -t "$RC_SVCNAME" -p daemon.warn"

start_pre() {
	if [ "$command_args" = "$RC_SVCNAME" ]; then
		eerror "$RC_SVCNAME cannot be started directly."
		eerror "You need to create symbolic links to it for each ALSA device you want to use."
	fi
}
