Browse Source

mjpg-streamer: make init script recognize file output plugin

Signed-off-by: Jose Riha <jose1711@gmail.com>
lilik-openwrt-22.03
Jose Riha 6 years ago
parent
commit
58db73e36d
2 changed files with 24 additions and 1 deletions
  1. +1
    -1
      multimedia/mjpg-streamer/Makefile
  2. +23
    -0
      multimedia/mjpg-streamer/files/mjpg-streamer.init

+ 1
- 1
multimedia/mjpg-streamer/Makefile View File

@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=mjpg-streamer
PKG_VERSION:=2018-10-25
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>, \
Ted Hess <thess@kitschensync.net>


+ 23
- 0
multimedia/mjpg-streamer/files/mjpg-streamer.init View File

@ -80,6 +80,29 @@ start_instance() {
[ -n "$username" ] && [ -n "$password" ] && output_arg="${output_arg} --credentials $username:$password"
fi
if [ "x$output" = 'xfile' ]; then
output_arg="output_file.so"
config_get folder "$s" 'folder'
[ -n "$folder" ] && output_arg="${output_arg} --folder $folder"
config_get delay "$s" 'delay'
[ -n "$delay" ] && output_arg="${output_arg} --delay $delay"
config_get link "$s" 'link'
[ -n "$link" ] && output_arg="${output_arg} --link $link"
config_get ringbuffer "$s" 'ringbuffer'
[ -n "$ringbuffer" ] && output_arg="${output_arg} --size $ringbuffer"
config_get exceed "$s" 'exceed'
[ -n "$exceed" ] && output_arg="${output_arg} --exceed $exceed"
config_get command "$s" 'command'
[ -n "$command" ] && output_arg="${output_arg} --command $command"
fi
if [ -z "$output_arg" ]; then
error "unsuported output option '$output' in section '$s'"
return 1


Loading…
Cancel
Save