projects
/
oss-streamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9567fc9
)
Starup script to use with alsa source
author
Roman Bazalevsky
<rvb@rvb.name>
Fri, 11 Jul 2014 15:55:13 +0000
(19:55 +0400)
committer
Roman Bazalevsky
<rvb@rvb.name>
Fri, 11 Jul 2014 15:55:13 +0000
(19:55 +0400)
etc/init.d/oss-streamer
patch
|
blob
|
history
diff --git
a/etc/init.d/oss-streamer
b/etc/init.d/oss-streamer
index 9f0baf3e7c0e79f39518440d5e9b2de0ddb85e32..77e58f58e9487f09274a8407023d2100d4342e75 100644
(file)
--- a/
etc/init.d/oss-streamer
+++ b/
etc/init.d/oss-streamer
@@
-5,7
+5,7
@@
START=90
STOP=10
USE_PROCD=1
-PROG=/usr/bin/
oss-streamer
+PROG=/usr/bin/
soundstream
error() {
echo "${initscript}:" "$@" 1>&2
@@
-13,7
+13,7
@@
error() {
start_instance() {
procd_open_instance
- procd_set_param command "$PROG"
-p 8081 -d /dev/dsp
+ procd_set_param command "$PROG"
procd_close_instance
}
@@
-21,6
+21,11
@@
start_service() {
start_instance 'oss-streamer'
}
+stop_service() {
+ killall arecord
+ killall oss-streamer
+}
+
service_triggers() {
procd_add_reload_trigger 'oss-streamer'
}