chore: allow backend names as mode
Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
parent
0c49dc796f
commit
3a1a9294ad
@ -26,8 +26,8 @@ function construct_streamer {
|
|||||||
mode="$(get_param "cam ${cams}" mode)"
|
mode="$(get_param "cam ${cams}" mode)"
|
||||||
check_section "${cams}"
|
check_section "${cams}"
|
||||||
case ${mode} in
|
case ${mode} in
|
||||||
[mM]ulti)
|
[mM]ulti | camera-streamer)
|
||||||
if [[ "$(is_raspberry_pi)" = "1" ]]; then
|
if [[ "$(is_raspberry_pi)" = "1" ]] && [[ "$(is_ubuntu_arm)" = "0" ]]; then
|
||||||
MULTI_INSTANCES+=( "${cams}" )
|
MULTI_INSTANCES+=( "${cams}" )
|
||||||
else
|
else
|
||||||
log_msg "WARN: Mode 'multi' is not supported on your device!"
|
log_msg "WARN: Mode 'multi' is not supported on your device!"
|
||||||
@ -35,7 +35,7 @@ function construct_streamer {
|
|||||||
MJPG_INSTANCES+=( "${cams}" )
|
MJPG_INSTANCES+=( "${cams}" )
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
mjpg | mjpeg)
|
mjpg | mjpeg | ustreamer)
|
||||||
MJPG_INSTANCES+=( "${cams}" )
|
MJPG_INSTANCES+=( "${cams}" )
|
||||||
;;
|
;;
|
||||||
?|*)
|
?|*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user