projects
/
oss-streamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor fixes
[oss-streamer.git]
/
etc
/
init.d
/
oss-streamer
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
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'
}