mirror of
https://github.com/openwrt/packages.git
synced 2025-03-14 20:27:35 +00:00
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>
This commit is contained in:
committed by
Rosen Penev
parent
6fb32638e7
commit
20ea1d9812
multimedia/mjpg-streamer
@ -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'
|
||||
|
Reference in New Issue
Block a user