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