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 <luizluca@gmail.com>
(cherry picked from commit 20ea1d9812
)
This commit is contained in:
parent
f76be42416
commit
a00aa8dabf
|
@ -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)?
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue