summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-fwknopd
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-10-15 19:16:37 +0300
committerGitHub <noreply@github.com>2017-10-15 19:16:37 +0300
commita47dd6ec057c1559c3a2effc41ae9dcc84856ebc (patch)
treede1e0234529b2dd7e5c041c496f609f2fcf15da3 /applications/luci-app-fwknopd
parentc429ec729ee38204a028c6800149805670197142 (diff)
parent4b7a00858ed6ac33cf546cee1d8bce375f63fe69 (diff)
Merge pull request #1392 from jp-bennett/patch-1
luci-app-fwknop: Adds a check to not overwrite user configured keys
Diffstat (limited to 'applications/luci-app-fwknopd')
-rw-r--r--applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd1
1 files changed, 1 insertions, 0 deletions
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 65ef01245..9e5057e70 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 <<EOF
add ucitrack fwknopd
set ucitrack.@fwknopd[-1].init=fwknopd