Merge pull request #1710 from guidosarducci/lede-17.01-fix-luci-fwknopd
luci-app-fwknop: backport a check to not overwrite user configured keys
This commit is contained in:
commit
7f77a31293
2 changed files with 2 additions and 1 deletions
|
@ -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 <JBennett@incomsystems.biz>
|
||||
include ../../luci.mk
|
||||
|
|
|
@ -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 <<EOF
|
||||
add ucitrack fwknopd
|
||||
set ucitrack.@fwknopd[-1].init=fwknopd
|
||||
|
|
Loading…
Reference in a new issue