From 20ea1d9812fe8d6f693e21004d0eaeb5a5128718 Mon Sep 17 00:00:00 2001 From: Luiz Angelo Daros de Luca Date: Fri, 2 Aug 2024 16:46:38 -0300 Subject: [PATCH] mjpg-streamer: fix option enabled check in init.d [ "$enabled" ] returns true whatever non-empty value enabled has, including 0. Signed-off-by: Luiz Angelo Daros de Luca --- multimedia/mjpg-streamer/Makefile | 2 +- multimedia/mjpg-streamer/files/mjpg-streamer.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/multimedia/mjpg-streamer/Makefile b/multimedia/mjpg-streamer/Makefile index b05652784c..8d6027e2ce 100644 --- a/multimedia/mjpg-streamer/Makefile +++ b/multimedia/mjpg-streamer/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mjpg-streamer PKG_VERSION:=1.0.0 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/jacksonliam/mjpg-streamer/tar.gz/v$(PKG_VERSION)? diff --git a/multimedia/mjpg-streamer/files/mjpg-streamer.init b/multimedia/mjpg-streamer/files/mjpg-streamer.init index a1edf8c3fc..d76cdec3ba 100644 --- a/multimedia/mjpg-streamer/files/mjpg-streamer.init +++ b/multimedia/mjpg-streamer/files/mjpg-streamer.init @@ -16,7 +16,7 @@ start_instance() { local enabled config_get_bool enabled "$1" 'enabled' 0 - [ "$enabled" ] || return + [ "$enabled" -gt 0 ] || return local input config_get input "$s" 'input' -- 2.30.2