luci-app-fwknop: Adds a check to not overwrite user configured keys 1392/head
authorJonathan Bennett <jbennett@incomsystems.biz>
Sat, 14 Oct 2017 04:39:51 +0000 (23:39 -0500)
committerGitHub <noreply@github.com>
Sat, 14 Oct 2017 04:39:51 +0000 (23:39 -0500)
Signed-off-by: Jonathan Bennett <JBennett@Incomsystems.biz>
applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd

index 65ef012..9e5057e 100644 (file)
@@ -3,6 +3,7 @@
 #-- Licensed to the public under the GNU General Public License v2.
 . /lib/functions/network.sh
 
 #-- 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
 uci batch <<EOF
        add ucitrack fwknopd
        set ucitrack.@fwknopd[-1].init=fwknopd