chore: allow backend names as mode

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel 2023-04-13 20:18:49 +02:00
parent 0c49dc796f
commit 3a1a9294ad
No known key found for this signature in database
GPG Key ID: F465B83ACBA45639

View File

@ -26,8 +26,8 @@ function construct_streamer {
mode="$(get_param "cam ${cams}" mode)"
check_section "${cams}"
case ${mode} in
[mM]ulti)
if [[ "$(is_raspberry_pi)" = "1" ]]; then
[mM]ulti | camera-streamer)
if [[ "$(is_raspberry_pi)" = "1" ]] && [[ "$(is_ubuntu_arm)" = "0" ]]; then
MULTI_INSTANCES+=( "${cams}" )
else
log_msg "WARN: Mode 'multi' is not supported on your device!"
@ -35,7 +35,7 @@ function construct_streamer {
MJPG_INSTANCES+=( "${cams}" )
fi
;;
mjpg | mjpeg)
mjpg | mjpeg | ustreamer)
MJPG_INSTANCES+=( "${cams}" )
;;
?|*)