#!/bin/sh /etc/rc.common # Copyright (C) 2009-2013 OpenWrt.org START=90 STOP=10 USE_PROCD=1 PROG=/usr/bin/oss-streamer error() { echo "${initscript}:" "$@" 1>&2 } start_instance() { procd_open_instance procd_set_param command "$PROG" -p 8081 -d /dev/dsp procd_close_instance } start_service() { start_instance 'oss-streamer' } service_triggers() { procd_add_reload_trigger 'oss-streamer' }