Starup script to use with alsa source
authorRoman Bazalevsky <rvb@rvb.name>
Fri, 11 Jul 2014 15:55:13 +0000 (19:55 +0400)
committerRoman Bazalevsky <rvb@rvb.name>
Fri, 11 Jul 2014 15:55:13 +0000 (19:55 +0400)
etc/init.d/oss-streamer

index 9f0baf3e7c0e79f39518440d5e9b2de0ddb85e32..77e58f58e9487f09274a8407023d2100d4342e75 100644 (file)
@@ -5,7 +5,7 @@ START=90
 STOP=10
 
 USE_PROCD=1
 STOP=10
 
 USE_PROCD=1
-PROG=/usr/bin/oss-streamer
+PROG=/usr/bin/soundstream
 
 error() {
        echo "${initscript}:" "$@" 1>&2
 
 error() {
        echo "${initscript}:" "$@" 1>&2
@@ -13,7 +13,7 @@ error() {
 
 start_instance() {
        procd_open_instance
 
 start_instance() {
        procd_open_instance
-       procd_set_param command "$PROG" -p 8081 -d /dev/dsp
+       procd_set_param command "$PROG"
        procd_close_instance
 }
 
        procd_close_instance
 }
 
@@ -21,6 +21,11 @@ start_service() {
        start_instance 'oss-streamer'
 }
 
        start_instance 'oss-streamer'
 }
 
+stop_service() {
+  killall arecord
+  killall oss-streamer
+}
+
 service_triggers() {
        procd_add_reload_trigger 'oss-streamer'
 }
 service_triggers() {
        procd_add_reload_trigger 'oss-streamer'
 }