mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04: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
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=mjpg-streamer
|
PKG_NAME:=mjpg-streamer
|
||||||
PKG_VERSION:=1.0.0
|
PKG_VERSION:=1.0.0
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/jacksonliam/mjpg-streamer/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/jacksonliam/mjpg-streamer/tar.gz/v$(PKG_VERSION)?
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ start_instance() {
|
|||||||
|
|
||||||
local enabled
|
local enabled
|
||||||
config_get_bool enabled "$1" 'enabled' 0
|
config_get_bool enabled "$1" 'enabled' 0
|
||||||
[ "$enabled" ] || return
|
[ "$enabled" -gt 0 ] || return
|
||||||
|
|
||||||
local input
|
local input
|
||||||
config_get input "$s" 'input'
|
config_get input "$s" 'input'
|
||||||
|
|||||||
Reference in New Issue
Block a user