From 2561f2a85ad65027c84aded1ab304c7e5d3d2902 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Fri, 13 Oct 2017 23:39:51 -0500 Subject: [PATCH] luci-app-fwknop: Adds a check to not overwrite user configured keys Signed-off-by: Jonathan Bennett [Tony Ambardar: backported from master branch 4b7a0085 ("luci-app-fwknop: Adds a check to not overwrite user configured keys")] Signed-off-by: Tony Ambardar --- applications/luci-app-fwknopd/Makefile | 2 +- .../luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/luci-app-fwknopd/Makefile b/applications/luci-app-fwknopd/Makefile index 3fbd88ad61..6df5a47406 100644 --- a/applications/luci-app-fwknopd/Makefile +++ b/applications/luci-app-fwknopd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk LUCI_TITLE:=Fwknopd config - web config for the firewall knock daemon LUCI_DEPENDS:=+fwknopd +qrencode PKG_VERSION:=1.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=GPLv2 PKG_MAINTAINER:=Jonathan Bennett include ../../luci.mk diff --git a/applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd b/applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd index 65ef012450..9e5057e701 100644 --- a/applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd +++ b/applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd @@ -3,6 +3,7 @@ #-- Licensed to the public under the GNU General Public License v2. . /lib/functions/network.sh +[ "$(uci -q get fwknopd.@access[0].KEY)" != "CHANGEME" ] && exit 0 uci batch <